Skip to content

Commit 6e54eb7

Browse files
committed
validation
1 parent d584a21 commit 6e54eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/Section 5 -- Validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,14 @@ fragment conflictingDifferingResponses on Pet {
593593
- Let {requiredStatus} be the required status of {field}
594594
- Let {designatorDepth} be the number of square bracket pairs in {requiredStatus}
595595
- Let {typeDepth} be the number of list dimensions in {fieldType}
596-
- If {typeDepth} equals {designatorDepth} return true
596+
- If {typeDepth} equals {designatorDepth} or {designatorDepth} equals 0 return true
597597
- Otherwise return false
598598

599599
**Explanatory Text**
600600

601601
List fields can be marked with nullability designators that look like `[?]!` to indicate the
602602
nullability of the list's elements and the nullability of the list itself. For multi-dimensional
603-
lists, the designator would look something like `[[[!]?]]!`. The number of dimensions of the
603+
lists, the designator would look something like `[[[!]?]]!`. If the designator is not a simple `!` or `?`, then the number of dimensions of the
604604
designator are required to match the number of dimensions of the field's type. If the two do not
605605
match then a validation error is thrown.
606606

0 commit comments

Comments
 (0)