We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7ca86 commit e8667b6Copy full SHA for e8667b6
openapi3/schema_test.go
@@ -204,6 +204,32 @@ var schemaExamples = []schemaExample{
204
},
205
206
207
+ {
208
+ Title: "NULLABLE ALLOF",
209
+ Schema: NewAllOfSchema(
210
+ NewBoolSchema().WithNullable(),
211
212
+ ),
213
+ Serialization: map[string]interface{}{
214
+ "allOf": []interface{}{
215
+ map[string]interface{}{"type": "boolean", "nullable": true},
216
217
+ },
218
219
+ AllValid: []interface{}{
220
+ nil,
221
+ true,
222
+ false,
223
224
+ AllInvalid: []interface{}{
225
+ 2,
226
+ 4.2,
227
+ []interface{}{42},
228
+ "bla",
229
+ map[string]interface{}{},
230
231
232
+
233
{
234
Title: "BOOLEAN",
235
Schema: NewBoolSchema(),
0 commit comments