Skip to content

Commit

Permalink
validation
Browse files Browse the repository at this point in the history
  • Loading branch information
twof committed Mar 15, 2022
1 parent d584a21 commit 6e54eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Section 5 -- Validation.md
Expand Up @@ -593,14 +593,14 @@ fragment conflictingDifferingResponses on Pet {
- Let {requiredStatus} be the required status of {field}
- Let {designatorDepth} be the number of square bracket pairs in {requiredStatus}
- Let {typeDepth} be the number of list dimensions in {fieldType}
- If {typeDepth} equals {designatorDepth} return true
- If {typeDepth} equals {designatorDepth} or {designatorDepth} equals 0 return true
- Otherwise return false

**Explanatory Text**

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

Expand Down

0 comments on commit 6e54eb7

Please sign in to comment.