-
-
Notifications
You must be signed in to change notification settings - Fork 213
Add glossary entries for schema and instance. #462
Conversation
✅ Deploy Preview for condescending-hopper-c3ed30 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks! |
This seems to focus on validation to the point of not considering any other application of JSON schema. Validation is by far the most common thing to do with schemas and instances, for sure, but not the only thing. I'd say that an instance is JSON data described by a schema (or multiple schemas), and a schema describes a set of instances, which are expected to be valid against it. This is a thought I have had more broadly in the language used with JSON schema. My own implementation is focused on the descriptive aspect of the schema/instance relationship, with validation being a requisite feature to support that. |
|
||
A document, written according to the proscribed structure of the JSON Schema specification, which can be used to validate [instances](#instance). | ||
|
||
The rules constituting what schemas are *valid* JSON Schemas, as well as the rules governing their behavior when validating instances, are defined by the JSON Schema specification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always feel like using the term "valid" in describing schemas that don't break any rules of the specification is asking for confusing with "valid" as a result of validating an instance against a schema. Especially since a schema can be valid against the specification, or valid against its metaschema, with pretty different (though strongly related) meanings. In that suite I'm working on of schemas that violate their spec, I landed on "conformant" to the spec to differentiate that from validation.
I'm happy to reword, but don't we use the verbiage "validation" / "validate" even for the cases you're referring to? That was the feedback given here. |
There's #469 with some cleanup so we can discuss on an open PR. |
Which was immediately followed by:
"evaluation" is used fairly consistently in the spec such as in section 7 among others. |
No description provided.