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
Copy file name to clipboardExpand all lines: Sources/swift-openapi-generator/Documentation.docc/Development/Handling-nullable-schemas.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ For example:
37
37
38
38
```yaml
39
39
MyOptionalString:
40
-
type: [string, null]
40
+
type: [string, 'null']
41
41
```
42
42
43
43
> The rule can be summarized as: `schema is optional := schema is nullable`, where being `nullable` is represented slightly differently between the two JSON Schema versions.
@@ -75,7 +75,7 @@ MyPerson:
75
75
name:
76
76
type: string
77
77
age:
78
-
type: [integer, null]
78
+
type: [integer, 'null']
79
79
required:
80
80
- name
81
81
- age # even though required, the nullability of the schema "wins"
0 commit comments