You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes to examples of template expansion of undefined (null) values
RFC6570 section 3.2.1 says:
"A variable that is undefined (Section 2.3) has no value and is ignored by the
expansion process. If all of the variables in an expression are undefined,
then the expression's expansion is the empty string."
..therefore the provided examples for the "matrix" and "label" styles are
incorrect -- the full expansion is the empty string, with no leader/prefix.
Copy file name to clipboardExpand all lines: src/oas.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -898,6 +898,7 @@ See the [Header Object](#header-object) for special rules for showing examples o
898
898
Assume a parameter named `color` has one of the following values, where the value to the right of the `->` is what would be shown in the `dataValue` field of an Example Object:
899
899
900
900
```js
901
+
undefined -> null
901
902
string -> "blue"
902
903
array -> ["blue", "black", "brown"]
903
904
object -> { "R": 100, "G": 200, "B": 150 }
@@ -913,10 +914,10 @@ The following table shows serialized examples, as would be shown with the `seria
0 commit comments