-
-
Notifications
You must be signed in to change notification settings - Fork 308
What does "annotation result" mean? #946
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
Comments
Here's a good place to start: https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.7.7 |
Thanks for that link! I can't believe I missed it 🤦 . So first a little rehash of what I'm understanding "annotation results" to be. To see if I'm on track. Annotations are arbitrary eg. {
"type": "string",
"describes": "color"
} In this example,
Another example, from the spec: {
"title": "Feature list",
"type": "array",
"items": [
{
"title": "Feature A",
"properties": {
"enabled": {
"$ref": "#/$defs/enabledToggle",
"default": true
}
}
},
{
"title": "Feature B",
"properties": {
"enabled": {
"description": "If set to null, Feature B
inherits the enabled
value from Feature A",
"$ref": "#/$defs/enabledToggle"
}
}
}
],
"$defs": {
"enabledToggle": {
"title": "Enabled",
"description": "Whether the feature is enabled (true),
disabled (false), or under
automatic control (null)",
"type": ["boolean", "null"],
"default": null
}
}
} In this case,
So, if I'm correct so far (and please correct me if I'm not), if
If this is indeed the case, then I'm confused about the spec's apparent concrete use of the
It would seem that the spec defines the validation of a keyword ( |
@meowsbits "annotation results" in the sense of "data produced by an annotation keyword and returned to the application that ran the JSON Schema implementation" are not negotiable or arbitrary. "annotations results" in the sense of "the application-level effect of processing annotations" is negotiable and therefore somewhat arbitrary. The application has to determine what sort of change Does this help? |
/remind me to close this issue if there's no reply in 28 days |
@Relequestual set a reminder for Oct 16th 2020 |
Hey all, I'm trying to wrap my head around the spec (specifically, this section) and I see
annotation result
used, but I can't find a definition for it. What does it mean?This issue deals with it too, but I wasn't able to grok a definition there either.
The text was updated successfully, but these errors were encountered: