Skip to content
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

fix: change $defs to definitions per draft07 #140

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented May 16, 2024

$defs works, but it its not part of draft07 which leads to odd warnings in some implementations.

I've switched this to definitions as per the spec.

see: https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01#rfc.section.9

fixes: open-feature/flagd#1309

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
booleanFlag:
$comment: merge the variants with the base flag to build our typed flags
Copy link
Member Author

@toddbaert toddbaert May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only unrelated change... for some reason changing $defs to definitions resulted in saying the location of this comment was previously invalid.

@toddbaert toddbaert merged commit 87ab28a into main May 17, 2024
8 checks passed
@toddbaert toddbaert deleted the fix/definitions branch May 17, 2024 13:42
@github-actions github-actions bot mentioned this pull request May 17, 2024
toddbaert pushed a commit that referenced this pull request May 17, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>json/json-schema: 0.2.4</summary>

##
[0.2.4](json/json-schema-v0.2.3...json/json-schema-v0.2.4)
(2024-05-17)


### 🐛 Bug Fixes

* change $defs to definitions per draft07
([#140](#140))
([87ab28a](87ab28a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Wrong $defs keyword used in JSON schemas
4 participants