-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sean/setup-java-v4-ftw
- Loading branch information
Showing
12 changed files
with
136 additions
and
40 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
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
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
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
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
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
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
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
42 changes: 42 additions & 0 deletions
42
modules/swagger-parser-v3/src/test/resources/issue-2071/definitions.yaml
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 @@ | ||
components: | ||
schemas: | ||
Response: | ||
type: array | ||
items: | ||
oneOf: | ||
- $ref: '#/components/schemas/ProductRow' | ||
properties: | ||
orderRow: | ||
$ref: '#/components/schemas/OrderRow' | ||
discriminator: | ||
propertyName: type | ||
mapping: | ||
'product': '#/components/schemas/ProductRow' | ||
ProductRow: | ||
type: object | ||
additionalProperties: false | ||
required: | ||
- type | ||
properties: | ||
type: | ||
$ref: '#/components/schemas/ProductRowType' | ||
payload: | ||
type: string | ||
ProductRowType: | ||
type: string | ||
enum: | ||
- product | ||
OrderRow: | ||
type: object | ||
additionalProperties: false | ||
required: | ||
- type | ||
properties: | ||
type: | ||
$ref: '#/components/schemas/OrderRowType' | ||
payload: | ||
type: string | ||
OrderRowType: | ||
type: string | ||
enum: | ||
- order |
21 changes: 21 additions & 0 deletions
21
modules/swagger-parser-v3/src/test/resources/issue-2071/openapi.yaml
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,21 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: API | ||
description: API | ||
version: LATEST | ||
paths: | ||
/test-path: | ||
post: | ||
requestBody: | ||
required: true | ||
content: | ||
text/plain: | ||
schema: | ||
type: string | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: 'definitions.yaml#/components/schemas/Response' |
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
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