-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
KDL Schema spec clarifications/typos #315
Comments
|
Dope, I'll file a PR for some of these when I have better clarity on them. Some more issues: ISSUES
I AM CONFUSED
|
On
|
updated my formatting a bit so it's easier to refer to specific points and I can keep track of where my understanding is |
On Schema Referencing(This is future-facing stuff, not necessarily problems in the current spec)
|
On forward-compat / extensibility(This is future-facing stuff, not necessarily problems in the current spec) Forward-compat and extensibility are two sides of the same coin: to what extent can things be designed to support New Or Non-Standard Features. However all the defaults of the KDL Schema seem tuned heavily against this. In particular (unlike json-schema) everything defaults to "only what I've mentioned is allowed". I get the inclination but it's pretty hazardous to the goals of this section. In my prototype I've identified a few places where extensibility could be supported:
Features that would be useful for forward-compat:
|
I've been working through implementing a KDL Schema Validator, and I've run into a few questions. I will probably find more over time but this is what I have so far.
TYPOS
ERRORS / QUESTIONS
enum
validations be an empty list? (implying nothing matches?)type
validations? (are these core types like "string" or rich types like "(i32)"?node
node has "zero or morechildren
" but thechildren
node is itself a list of children..?children
though?%
is... problematic with floating point. There are ways to do it, the rust json-schema crate handles it, but want to confirm this pandora's box is intentional.multiple
to avoid the questionThe text was updated successfully, but these errors were encountered: