Skip to content

Commit f0b4887

Browse files
author
Ron
authored
Merge pull request #2074 from tedepstein/patch-4
Tiny corrections to proposal
2 parents b98e8c9 + 3f581f1 commit f0b4887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/003_Clarify-Nullable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ Questions that are not answered by the current specification include the followi
134134

135135
* Does an untyped schema (without a `type` keyword) allow null values by default? What effect, if any, does `nullable: true` have on an untyped schema?
136136

137-
* Can `allOf` be used to define a nullable subtype of non-nullable base schema? (See [#1368](https://github.com/OAI/OpenAPI-Specification/issues/1368).)
137+
* Can `allOf` be used to define a nullable subtype of a non-nullable base schema? (See [#1368](https://github.com/OAI/OpenAPI-Specification/issues/1368).)
138138

139-
* Can `allOf` be used to define a non-nullable subtype of nullable base schema?
139+
* Can `allOf` be used to define a non-nullable subtype of a nullable base schema?
140140

141141
* What is the correct translation of a nullable schema from OpenAPI into an equivalent JSON Schema?
142142

@@ -186,11 +186,11 @@ While the modified `type` now allows `null`, the `enum` does not. Consistent wit
186186

187187
Yes, an untyped schema allows null values, in addition to all other types. `nullable: true` has no effect, because null values are already allowed. And `nullable: false` has no effect because it just leaves the `type` constraint unmodified.
188188

189-
#### Can `allOf` be used to define a nullable subtype of non-nullable base schema? (See [#1368](https://github.com/OAI/OpenAPI-Specification/issues/1368).)
189+
#### Can `allOf` be used to define a nullable subtype of a non-nullable base schema? (See [#1368](https://github.com/OAI/OpenAPI-Specification/issues/1368).)
190190

191191
No. Subtypes can add constraints, but not relax them.
192192

193-
#### Can `allOf` be used to define a non-nullable subtype of nullable base schema?
193+
#### Can `allOf` be used to define a non-nullable subtype of a nullable base schema?
194194

195195
Yes. The subtype can specify a `type` without `nullable: true`, or can specify `not: {enum: [null]}`.
196196

0 commit comments

Comments
 (0)