-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eanea
committed
Oct 10, 2023
1 parent
97fcc0d
commit 209e1eb
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
docs/openapi-docs/src/test/resources/expected_nullable_option_class_field.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: ClassWithOptionClassField | ||
version: '1.0' | ||
paths: | ||
/: | ||
post: | ||
operationId: postRoot | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ClassWithOptionClassField' | ||
required: true | ||
responses: | ||
'200': | ||
description: '' | ||
content: | ||
text/plain: | ||
schema: | ||
type: string | ||
'400': | ||
description: 'Invalid value for: body' | ||
content: | ||
text/plain: | ||
schema: | ||
type: string | ||
components: | ||
schemas: | ||
Bar: | ||
required: | ||
- bar | ||
type: object | ||
properties: | ||
bar: | ||
type: integer | ||
format: int32 | ||
ClassWithOptionClassField: | ||
required: | ||
- requiredStringField | ||
type: object | ||
properties: | ||
optionalIntField: | ||
required: | ||
- bar | ||
type: | ||
- object | ||
- 'null' | ||
properties: | ||
bar: | ||
type: integer | ||
format: int32 | ||
requiredStringField: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters