| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Co-Authored-By: bot_apk <apk@cognition.ai>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Respect $ref sibling semantics for default/examples by draft
Summary
This PR makes the ValidDefault and ValidExamples linter rules draft-aware when the keyword appears as a sibling of $ref.
What changed
In Draft 7 and older, if a schema object contains both $ref and:
the rule now skips linting/transforming that object (because siblings of $ref must be ignored in those drafts).
In 2019-09 and 2020-12, the rules continue to lint those siblings and will still remove invalid default / examples values.
Tests added
For both valid_default and valid_examples, new tests cover:
Local verification
Review & Testing Checklist for Human
Notes