-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advertise use of markdown inside descriptions #42
Comments
This proposal is merely an annotation that describes the content of a known keyword. Since 2020-12, this will automatically be collected as an annotation since that's the prescribed behavior for all unknown keywords. I think this actually raises a larger question about extension vocabs that contain annotation-only keywords. |
There have been discussions about removing the ability in the future to support unknown keywords. I haven't looked into the arguments, but it feels sensible and plausible we could do that. |
@Relequestual it's not so much "remove unknown keywords" as it is "require declaring a vocabulary for all keywords". However, the ability to set a vocabulary to There are some subtleties around this change, but I suspect some variation of it is likely. The reason, as awwright pointed out in the last community call, is that allowing arbitrary keywords outside of any namespace (and vocabularies are, among other things, namespaces) makes it impossible to have a useful forward compatibility strategy in JSON Schema. Shifting to allowing unknown vocabularies (which we already do, if they are set to |
Many JSON Schemas make use of markdown inside their
description
fields as this is extremely useful for IDEs.One notable example is vscode which uses the alternative
markdownDescription
field for that purpose. Still, almost nobody populates both fields, so the idea of having a different field name proves to be less than ideal.That is why I want to propose a top level property such
hasMarkdown: true
that we can set at schema level that declares thatdescriptions
and maybe other fields are using markdown.Keep in mind that markdown is still valid as text so there is no major problem if a dump program would display description as plaintext when in fact it is markdown.
The text was updated successfully, but these errors were encountered: