json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

Ignore unknown keywords or treat as annotations

Open handrews opened this issue 2 years ago • 0 comments

This is just a bug fix for an accidental oversight. I'm hoping it's non-controversial as I don't think any of us meant to allow arbitrary behaviors for unrecognized keywords.

When we added the "SHOULD collect as annotations" behavior for unknown keywords, we forgot to retain the MUST directive to ignore them if the SHOULD is not followed. Which also ensures that no other behavior than collecting as a annotations is performed.

This also consolidates the behavioral specification in one place as it appeared in two places before.

handrews avatar Aug 10 '22 21:08 handrews