$vocabulary behaviour #370
-
ContextThis would be the next natural question after dynamicAnchor behaviour on which First of all I thank @jdesrosiers for the great help in understanding
QuestionsDespite the fact that I solved the
There are more questions, but they depend on the answers to the first questions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The vocabulary system is independent from
This system is still under development, so we don't necessarily have answers for all of your questions, particularly the "what to do in the event of a conflict" ones. As it stands, vocabularies can define the same keywords, even ones that the spec defines. However, in the event of a collision, the behavior is undefined. That is, the implementation gets to choose what to do. Eventually, we'd like to define this, but we just haven't explored it enough, yet. Right now, this space is just underspecified. If you'd like more reading on how vocabularies work, I have some docs with an explanation and about as simple an example as I could devise. I have also written two vocabularies, |
Beta Was this translation helpful? Give feedback.
The vocabulary system is independent from
$dynamic*
. We use$dynamic*
in the meta-schemas so that people can extend them easily, but they could have been written without$dynamic*
. Using$dynamic*
just makes it easier on people who want to create their own meta-schemas that build on ours.$vocabulary
is a way for people to define custom keywords in such a way that allows implementations to declare that they support those keywords, or even refuse to process the schema if they don't understand the keywords. It prevents "surprises:" unexpected inconsistencies between implementations.This system is still under developm…