-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix #7489 feat(nimbus): Support bundled schemas in validation Because: * The JSON Schema validation library we're using does not support relative refs (e.g., `{ "$ref": "#/$defs/foo" }`) and also does not support bundled schema (i.e., relative references under a sub-schema with an `$id`, see [this doc][1] for more details). This commit: * Adds a custom ref resolver that walks the provided schema and adds the top-level schema and all bundled schemas under `$defs` as known references. This also requires the fix from https://bugzilla.mozilla.org/show_bug.cgi?id=1778368 to land in mozilla-central. fixes #7489 [1]: https://json-schema.org/understanding-json-schema/structuring.html#bundling * add tests Co-authored-by: Jared Lockhart <[email protected]>
- Loading branch information
1 parent
1ab44e1
commit add8239
Showing
2 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters