-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3327 from softwaremill/independent-customisation-…
…option Properly handle independent customisation of referenced schemas, where one is an option
- Loading branch information
Showing
4 changed files
with
116 additions
and
5 deletions.
There are no files selected for viewing
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
44 changes: 44 additions & 0 deletions
44
...penapi-docs/src/test/resources/multi_customise_schema/expected_deprecated_array_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,44 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
paths: | ||
/: | ||
get: | ||
operationId: getRoot | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/HasCollectionDeprecated' | ||
required: true | ||
responses: | ||
'200': | ||
description: '' | ||
'400': | ||
description: 'Invalid value for: body' | ||
content: | ||
text/plain: | ||
schema: | ||
type: string | ||
components: | ||
schemas: | ||
Data1: | ||
required: | ||
- x | ||
type: object | ||
properties: | ||
x: | ||
type: string | ||
HasCollectionDeprecated: | ||
type: object | ||
properties: | ||
field1: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Data1' | ||
field2: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Data1' | ||
deprecated: true |
42 changes: 42 additions & 0 deletions
42
...api-docs/src/test/resources/multi_customise_schema/expected_deprecated_optional_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,42 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
paths: | ||
/: | ||
get: | ||
operationId: getRoot | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/HasOptionalDeprecated' | ||
required: true | ||
responses: | ||
'200': | ||
description: '' | ||
'400': | ||
description: 'Invalid value for: body' | ||
content: | ||
text/plain: | ||
schema: | ||
type: string | ||
components: | ||
schemas: | ||
Data1: | ||
required: | ||
- x | ||
type: object | ||
properties: | ||
x: | ||
type: string | ||
HasOptionalDeprecated: | ||
required: | ||
- field1 | ||
type: object | ||
properties: | ||
field1: | ||
$ref: '#/components/schemas/Data1' | ||
field2: | ||
$ref: '#/components/schemas/Data1' | ||
deprecated: true |
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