add test case for nullable parent property (#16552)

* add nullable case to spring test spec

* generate samples for changed spring input

* add nullable case to general test spec

* generate samples for changed general input

* generate samples again

* generates samples again

* re-build from new sources, generates samples again
This commit is contained in:
martin-mfg
2023-09-12 09:59:58 +02:00
committed by GitHub
parent 196c2b1642
commit d6695056fe
346 changed files with 20471 additions and 0 deletions

View File

@@ -1031,6 +1031,25 @@ paths:
- fake
x-content-type: application/json
x-accepts: application/json
/fake/nullable:
post:
description: ""
operationId: testNullable
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChildWithNullable'
description: request body
required: true
responses:
"200":
description: successful operation
summary: test nullable parent property
tags:
- fake
x-content-type: application/json
x-accepts: application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1862,6 +1881,25 @@ components:
OuterBoolean:
type: boolean
x-codegen-body-parameter-name: boolean_post_body
ParentWithNullable:
discriminator:
propertyName: type
properties:
type:
enum:
- ChildWithNullable
type: string
nullableProperty:
nullable: true
type: string
type: object
ChildWithNullable:
allOf:
- $ref: '#/components/schemas/ParentWithNullable'
- properties:
otherProperty:
type: string
type: object
StringBooleanMap:
additionalProperties:
type: boolean