-
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 pull request #2064 from walaniam/issue_1886_202403
Issue 1886
- Loading branch information
Showing
20 changed files
with
1,152 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
modules/swagger-parser-v3/src/test/resources/issue-1886/components.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,19 @@ | ||
Enum1: | ||
$ref: schemas/enum1.yaml | ||
Enum2: | ||
type: string | ||
enum: [a, b, c] | ||
nullable: false | ||
Enum3: | ||
type: string | ||
enum: [x, y, z] | ||
nullable: true | ||
|
||
SimplePojo: | ||
$ref: schemas/simple-pojo.yaml | ||
ArrayPojo: | ||
$ref: schemas/array-pojo.yaml | ||
MapPojo: | ||
$ref: schemas/map-pojo.yaml | ||
SetPojo: | ||
$ref: schemas/set-pojo.yaml |
71 changes: 71 additions & 0 deletions
71
modules/swagger-parser-v3/src/test/resources/issue-1886/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,71 @@ | ||
openapi: 3.0.3 | ||
|
||
info: | ||
title: Arrangement Support | ||
version: '1.0' | ||
|
||
paths: | ||
/simple-types: | ||
$ref: paths/simple-types.yaml | ||
/simple-types/{id}/{ids}: | ||
$ref: paths/simple-types-ids.yaml | ||
/array-types: | ||
$ref: paths/array-types.yaml | ||
/array-types/{id}/{ids}: | ||
$ref: paths/array-types-ids.yaml | ||
/set-types: | ||
$ref: paths/set-types.yaml | ||
/set-types/{id}/{ids}: | ||
$ref: paths/set-types-ids.yaml | ||
/map-types: | ||
$ref: paths/map-types.yaml | ||
/map-types/{id}/{ids}: | ||
$ref: paths/map-types-ids.yaml | ||
/transactions: | ||
patch: | ||
tags: | ||
- transactions | ||
summary: patch | ||
description: Updates list of transactions | ||
operationId: patchTransactions | ||
requestBody: | ||
description: Updates list of transactions | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/TransactionsPatchRequestBody' | ||
responses: | ||
"204": | ||
description: OK | ||
|
||
components: | ||
schemas: | ||
TransactionsPatchRequestBody: | ||
required: | ||
- id | ||
type: object | ||
properties: | ||
id: | ||
maxLength: 300 | ||
type: string | ||
description: Unique identification for the transaction as used in the external | ||
system | ||
arrangementId: | ||
maxLength: 50 | ||
type: string | ||
description: An external reference to the arrangement the transaction belongs | ||
to | ||
category: | ||
maxLength: 50 | ||
type: string | ||
description: Transaction category | ||
billingStatus: | ||
maxLength: 8 | ||
type: string | ||
creationTime: | ||
type: string | ||
format: date-time | ||
x-java-type: java.time.OffsetDateTime | ||
|
40 changes: 40 additions & 0 deletions
40
modules/swagger-parser-v3/src/test/resources/issue-1886/paths/array-types-ids.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,40 @@ | ||
parameters: | ||
- name: id | ||
required: true | ||
in: path | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: ids | ||
in: path | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
delete: | ||
tags: | ||
- array-types | ||
x-content-language: application/json | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../components.yaml#/ArrayPojo' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../components.yaml#/ArrayPojo' |
134 changes: 134 additions & 0 deletions
134
modules/swagger-parser-v3/src/test/resources/issue-1886/paths/array-types.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,134 @@ | ||
get: | ||
tags: | ||
- array-types | ||
x-content-language: application/json | ||
parameters: | ||
- name: h-param | ||
in: header | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: h-params | ||
in: header | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: c-param | ||
in: cookie | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: c-params | ||
in: cookie | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-param | ||
in: query | ||
required: false | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-param-enum | ||
in: query | ||
required: false | ||
schema: | ||
$ref: '../components.yaml#/Enum1' | ||
- name: q-param-req | ||
in: query | ||
required: true | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-param-enum-req | ||
in: query | ||
required: true | ||
schema: | ||
$ref: '../components.yaml#/Enum2' | ||
- name: q-params | ||
in: query | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-params-enum | ||
in: query | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../components.yaml#/Enum3' | ||
- name: q-params-req | ||
in: query | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-params-set | ||
in: query | ||
required: false | ||
schema: | ||
type: array | ||
uniqueItems: true | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: q-params-set-req | ||
in: query | ||
required: true | ||
schema: | ||
type: array | ||
uniqueItems: true | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components.yaml#/ArrayPojo' | ||
post: | ||
tags: | ||
- array-types | ||
x-content-language: application/json | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components.yaml#/ArrayPojo' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components.yaml#/ArrayPojo' |
40 changes: 40 additions & 0 deletions
40
modules/swagger-parser-v3/src/test/resources/issue-1886/paths/map-types-ids.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,40 @@ | ||
parameters: | ||
- name: id | ||
required: true | ||
in: path | ||
schema: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
- name: ids | ||
in: path | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
minLength: 1 | ||
maxLength: 36 | ||
pattern: '^[A-Z]+$' | ||
delete: | ||
tags: | ||
- simple-types | ||
x-content-language: application/json | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../components.yaml#/SimplePojo' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../components.yaml#/SimplePojo' |
Oops, something went wrong.