Extracting vocabularies into the Feature Life Cycle #724
Replies: 4 comments 23 replies
-
|
Discussion:
|
Beta Was this translation helpful? Give feedback.
-
|
Discussion:
|
Beta Was this translation helpful? Give feedback.
-
|
I found a breaking change when editing the Validation spec: With vocabularies, a schema author has the power to specify whether However, without vocabularies, the schema author no longer has that power, and asserting |
Beta Was this translation helpful? Give feedback.
-
|
I really like your new way of thinking which aligns with many things that I have expressed in the past. Here is a set of principles that I believe you should adhere to:
Using this set of rules, The decentralized structure that I described above is also the structure used by schema.org. In this structure |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Extracting vocbaularies is going to be a lot more work than extracting
propertyDependencieswas. Vocabulary language has been in the spec since 2019-09, and is very well integrated into the text.Extraction
Much of it is casual mentions and can be replaced with "in this/that document" instead of "in the X vocabulary" and the like, but there are some hard parts.
Here is a quick survey of the occurrences of "vocbaulary" within the specs:
JSON Schema Core
integeras a value type.falseschema is equivalent to{ "not": {} }.definitions, which has been retired.)$idand other identifier keywords.maxLengthandtypeare from the Validation vocab.$vocabularyKeyword$comment$commentis allowed anywhere vocab keywords are found.itemspropertiespatternPropertiesadditionalPropertiescontainsJSON Schema Validation
formatI suspect that much of the changes will simply be reverting back to something like draft 7, before we introduced vocabs. There will be language and section changes (since some of the sections only serve to group keywords).
The proposal document is going to be large. I don't think there's a way around it. The discussion here is to figure out our strategy.
I've started threads below for each of the discussion points. Participation is open, and feel free to create threads for other (related) ideas.
Proposal Options
I have two orthogonal sets of ideas:
Vocab Organization
Options here are:
Re-Integration vs New Documents
Update
I have created a draft PR to start this work.
Beta Was this translation helpful? Give feedback.
All reactions