-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify tracing of known type and required in nested rules
E.g. in allOf/oneOf, we just rely on the checks in parent rule, but only for type/required checks. In the following schema, the nested allOf will just check for `{ required: ['yyy'] }`: ``` { type: 'object', required: ['xxx','zzz'], allOf: [{ type: 'object', required: ['xxx', 'yyy'] }] } ``` Properties/items can't be inherited as they affect evaluation checks, which should be isolated from the parent.
- Loading branch information
Showing
4 changed files
with
11 additions
and
20 deletions.
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
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