-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Allow boolean subschemas everywhere. #128
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,8 +327,7 @@ | |
|
||
<section title="items"> | ||
<t> | ||
The value of "items" MUST be either an object or an array of objects. | ||
Each object MUST be a valid JSON Schema. | ||
The value of "items" MUST be either a valid subschema or an array of valid subschemas. | ||
</t> | ||
<t> | ||
If absent, it can be considered present with an empty schema. | ||
|
@@ -350,8 +349,7 @@ | |
|
||
<section title="additionalItems"> | ||
<t> | ||
The value of "additionalItems" MUST be a boolean or an object. | ||
If it is an object, the object MUST be a valid JSON Schema. | ||
The value of "additionalItems" MUST be a valid subschema. | ||
</t> | ||
<t> | ||
If absent, it can be considered present with an empty schema. | ||
|
@@ -466,7 +464,7 @@ | |
<section title="properties"> | ||
<t> | ||
The value of "properties" MUST be an object. Each value of this object | ||
MUST be an object, and each object MUST be a valid JSON Schema. | ||
MUST be a valid subschema. | ||
</t> | ||
<t> | ||
If absent, it can be considered the same as an empty object. | ||
|
@@ -487,7 +485,7 @@ | |
The value of "patternProperties" MUST be an object. Each property name | ||
of this object SHOULD be a valid regular expression, according to the | ||
ECMA 262 regular expression dialect. Each property value of this object | ||
MUST be an object, and each object MUST be a valid JSON Schema. | ||
MUST be a valid subschema. | ||
</t> | ||
<t> | ||
If absent, it can be considered the same as an empty object. | ||
|
@@ -506,8 +504,7 @@ | |
|
||
<section title="additionalProperties"> | ||
<t> | ||
The value of "additionalProperties" MUST be a boolean or an | ||
object. If it is an object, the object MUST be a valid JSON Schema. | ||
The value of "additionalProperties" MUST be a valid subschema. | ||
</t> | ||
<t> | ||
If "additionalProperties" is absent, it may be considered present with | ||
|
@@ -535,12 +532,11 @@ | |
</t> | ||
<t> | ||
This keyword's value MUST be an object. Each property specifies a dependency. | ||
Each dependency value MUST be an object or an array. | ||
Each dependency value MUST be an array or a valid subschema. | ||
</t> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would add "array of strings"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's covered on line 542. |
||
<t> | ||
If the dependency value is an object, it MUST be a valid JSON Schema. If the | ||
dependency key is a property in the instance, the dependency value must validate | ||
against the entire instance. | ||
If the dependency value is a subschema, and the dependency key is a property | ||
in the instance, the entire instance must validate against the dependency value. | ||
</t> | ||
<t> | ||
If the dependency value is an array, each element in the array, | ||
|
@@ -649,7 +645,7 @@ | |
<section title="definitions"> | ||
<t> | ||
This keyword's value MUST be an object. Each member value of this object | ||
MUST be a valid JSON Schema. | ||
MUST be a valid subschema. | ||
</t> | ||
<t> | ||
This keyword plays no role in validation per se. Its role is to provide | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This language is not correct. "Consists of" means "has parts". Previous "must be" is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fixed in #167, which currently has more support than this PR. If that changes I will backport @awwright's language fixes to this PR.