Skip to content

Commit 603f63b

Browse files
docs: refactor to improve legibility (#2432)
The use of "not more" with the reverse ordering of the sentence made this difficult to parse. After reversing the order and removing negation, the surrounding paragraphs were updated to match the style. Co-authored-by: Jason Ian Green <jasoniangreen@users.noreply.github.com>
1 parent 8bccdc4 commit 603f63b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/json-schema.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,11 @@ To create and equivalent schema in draft-2020-12 use keywords [prefixItems](#pre
478478

479479
The value of the keyword should be a boolean or an object.
480480

481-
If `items` keyword is not present or it is an object, `additionalItems` keyword should be ignored regardless of its value. By default Ajv will throw exception in this case - see [Strict mode](./strict-mode.md)
481+
`additionalItems` keyword is ignored if `items` keyword is not present or is an object. By default Ajv will throw exception in this case - see [Strict mode](./strict-mode.md)
482482

483-
If `items` keyword is an array and data array has not more items than the length of `items` keyword value, `additionalItems` keyword is also ignored.
483+
`additionalItems` keyword is ignored if `items` keyword has more elements than data array.
484484

485-
If the length of data array is bigger than the length of "items" keyword value than the result of the validation depends on the value of `additionalItems` keyword:
485+
If the data array has more elements than the `items` keyword value then the result of the validation depends on the value of `additionalItems` keyword:
486486

487487
- `false`: data is invalid
488488
- `true`: data is valid

0 commit comments

Comments
 (0)