-
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.
Generate
anyOf
schema for oneOfVariant
s with the same status code…
… and content-type (#3703)
- Loading branch information
Showing
3 changed files
with
92 additions
and
2 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
53 changes: 53 additions & 0 deletions
53
...penapi-docs/src/test/resources/oneOf/expected_the_same_status_codes_and_content_types.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,53 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
paths: | ||
/: | ||
get: | ||
operationId: getRoot | ||
responses: | ||
'200': | ||
description: not found | ||
content: | ||
application/json: | ||
schema: | ||
anyOf: | ||
- $ref: '#/components/schemas/NotFound' | ||
- $ref: '#/components/schemas/Unauthorized' | ||
'204': | ||
description: unknown | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Unknown' | ||
components: | ||
schemas: | ||
NotFound: | ||
title: NotFound | ||
type: object | ||
required: | ||
- what | ||
properties: | ||
what: | ||
type: string | ||
Unauthorized: | ||
title: Unauthorized | ||
type: object | ||
required: | ||
- realm | ||
properties: | ||
realm: | ||
type: string | ||
Unknown: | ||
title: Unknown | ||
type: object | ||
required: | ||
- code | ||
- msg | ||
properties: | ||
code: | ||
type: integer | ||
format: int32 | ||
msg: | ||
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