File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,27 @@ fragment conflictingDifferingResponses on Pet {
584
584
}
585
585
```
586
586
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
+
587
608
### Leaf Field Selections
588
609
589
610
** Formal Specification**
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ The response might look like:
162
162
```
163
163
164
164
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
166
166
next nullable field. In that case, the ` path ` for the error should include
167
167
the full path to the result field where the error was raised, even if that
168
168
field is not present in the response.
You can’t perform that action at this time.
0 commit comments