@@ -583,20 +583,20 @@ fragment conflictingDifferingResponses on Pet {
583
583
584
584
** Formal Specification**
585
585
586
- * For each {field} in the document
587
- * Let {fieldDef} be the definition of {field}
588
- * Let {fieldType} be the type of {fieldDef}
589
- * Let {requiredStatus} be the required status of {field}
590
- * Let {designatorDepth} be the number of square bracket pairs in {requiredStatus}
591
- * Let {typeDepth} be the number of list dimensions in {fieldType}
592
- * If {typeDepth} equals {designatorDepth} return true
593
- * Otherwise return false
586
+ - For each {field} in the document
587
+ - Let {fieldDef} be the definition of {field}
588
+ - Let {fieldType} be the type of {fieldDef}
589
+ - Let {requiredStatus} be the required status of {field}
590
+ - Let {designatorDepth} be the number of square bracket pairs in {requiredStatus}
591
+ - Let {typeDepth} be the number of list dimensions in {fieldType}
592
+ - If {typeDepth} equals {designatorDepth} or {designatorDepth} equals 0 return true
593
+ - Otherwise return false
594
594
595
595
** Explanatory Text**
596
596
597
597
List fields can be marked with nullability designators that look like ` [?]! ` to indicate the
598
598
nullability of the list's elements and the nullability of the list itself. For multi-dimensional
599
- lists, the designator would look something like ` [[[!]?]]! ` . The number of dimensions of the
599
+ lists, the designator would look something like ` [[[!]?]]! ` . If the designator is not a simple ` ! ` or ` ? ` , then the number of dimensions of the
600
600
designator are required to match the number of dimensions of the field's type. If the two do not
601
601
match then a validation error is thrown.
602
602
0 commit comments