Skip to content

Commit c030d7b

Browse files
committed
response and validation
1 parent df08928 commit c030d7b

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

spec/Section 5 -- Validation.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,27 @@ fragment conflictingDifferingResponses on Pet {
584584
}
585585
```
586586

587+
### Client Controlled Nullability Designator List Dimensions
588+
589+
**Formal Specification**
590+
591+
* For each {field} in the document
592+
* Let {fieldDef} be the definition of {field}
593+
* Let {fieldType} be the type of {fieldDef}
594+
* Let {requiredStatus} be the required status of {field}
595+
* Let {designatorDepth} be the number of square bracket pairs in {requiredStatus}
596+
* Let {typeDepth} be the number of list dimensions in {fieldType}
597+
* If {typeDepth} equals {designatorDepth} return true
598+
* Otherwise return false
599+
600+
**Explanatory Text**
601+
602+
List fields can be marked with nullability designators that look like `[?]!` to indicate the
603+
nullability of the list's elements and the nullability of the list itself. For multi-dimensional
604+
lists, the designator would look something like `[[[!]?]]!`. The number of dimensions of the
605+
designator are required to match the number of dimensions of the field's type. If the two do not
606+
match then a validation error is thrown.
607+
587608
### Leaf Field Selections
588609

589610
**Formal Specification**

spec/Section 7 -- Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ The response might look like:
162162
```
163163

164164
If the field which experienced an error was declared as `Non-Null` or marked
165-
`Non-Null` in the query document, the `null` result will bubble up to the
165+
`Non-Null` in the query document, the `null` result will propagate to the
166166
next nullable field. In that case, the `path` for the error should include
167167
the full path to the result field where the error was raised, even if that
168168
field is not present in the response.

0 commit comments

Comments
 (0)