-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
JSON Schema Annotation and Documentation Extension #136
Comments
I think I18N/L10N make a particularly compelling reason to split this off. There are two regions of overlap worth special consideration:
|
This is part of a larger discussion I just started on the google group https://groups.google.com/forum/#!topic/json-schema/cG4HAyerqQk |
As seen in #125, #204, and json-schema-org/JSON-Schema-Test-Suite#139, the presence of |
@seagreen I saw your note that you wouldn't mind changing the title so I did :-) I kept your Documentation but added Annotation as I will explain in the next comment where I'm going to outline an initial proposal. Feel free to change it again if you don't like what I picked. I just wanted to get rid of "metadata" because to some extent, schemas are by definition metadata- they are data about some instance data. And from another point of view, things like titles are actually data. |
I can go into a lot more detail, but my basic idea is:
Thoughts? |
@handrews I like the idea, although I am not sure about vocabularies adding additional rules, what if I have a schema that I use for data model and validation and ui and two define an annotation differently especially if they state MUST? |
This is now tracked at json-schema-org/json-schema-vocabularies#1 and json-schema-org/json-schema-vocabularies#2 |
I know this is a bit late, but to me it seems that json-schema-org/json-schema-vocabularies#1 does not cover the use case addressed in #98 . Or do I just not see this? |
There's a potentially infinite amount of things we might want to know about each JSON Schema that don't have to do with how it actually validates data. For instance the title and description of a schema already have their own keywords, but these don't have any effect on validation.
I suggest we break self-describing schema info off into it's own extension to JSON Schema. For Draft 4 this wouldn't have been worth the trouble, but as we make self-describing keywords more sophisticated (for example with internationalization) it will become more important.
The concrete need for this is so that programs that already have a way to store metadata can use the structural validation parts of the JSON Schema specification without pulling in a redundant metadata specification.
First discussed here. I'm definitely open to changing the title of this issue -- perhaps "JSON Schema Documentation Extension" would be a better fit?
The text was updated successfully, but these errors were encountered: