Description
A schema using dialect-a can $ref
a schema using dialect-b but, there is nothing in the output format that indicates the dialect that was used to determine each output unit result. This can be important for keywords whose semantics have changed over time, but their name hasn't changed. The ones that come to mind immediately are maximum
/exclusiveMaximum
, minimum
/exclusiveMinimum
, format
, and links
.
We could potentially determine the dialect for an output unit by using the absouteKeywordLocation
to lookup the schema and inspect it's $schema
property, but that has two problems. First, absoluteKeywordLocation
is not required. Second, if the output is passed to a third party for processing, it might not have access to the original schema to look up it's dialect.
The simplest approach would be to add a field such as dialect
to the output unit. However, It would be more useful to have a unique identifier for each keyword. That way, when we introduce a new draft, if a keyword doesn't change, it's ID doesn't have to change. That would make it easier for tools to do things with annotations where they don't care what dialect they are as long as they have the same semantics (such as title
and description
).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status