-
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 #1823 from devdevx/issues-1777-1802
- Loading branch information
Showing
5 changed files
with
238 additions
and
0 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
56 changes: 56 additions & 0 deletions
56
modules/swagger-parser-v3/src/test/resources/issue-1777/issue1777.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,56 @@ | ||
openapi: "3.0.0" | ||
info: | ||
title: API-Template | ||
description: | | ||
Single or multilined API description. Can be written on HTML or [CommonMark](http://commonmark.org/help/) | ||
version: v1 | ||
|
||
tags: | ||
- name: Customers | ||
description: "Operations and resources related to customers" | ||
|
||
paths: | ||
/customers/{customerId}: | ||
parameters: | ||
- $ref: '#/components/parameters/customerIdPathParam' | ||
get: | ||
summary: Retrieve customer information | ||
description: Description for operation that allows retrieve customer information | ||
operationId: retrieveCustomerInfo | ||
tags: | ||
- Customers | ||
responses: | ||
'200': | ||
description: Customer response | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/customer' | ||
|
||
components: | ||
parameters: | ||
customerIdPathParam: | ||
name: customerId | ||
in: path | ||
required: true | ||
description: The id of the customer | ||
schema: | ||
$ref: '#/components/schemas/uuid' | ||
|
||
schemas: | ||
uuid: | ||
type: string | ||
format: uuid | ||
minLength: 36 | ||
maxLength: 36 | ||
pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' | ||
|
||
customer: | ||
type: object | ||
properties: | ||
id: | ||
description: The id of the customer | ||
allOf: | ||
- $ref: '#/components/schemas/uuid' | ||
x-apigen-mapping: | ||
field: id |
67 changes: 67 additions & 0 deletions
67
modules/swagger-parser-v3/src/test/resources/issue-1802/issue1802.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,67 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: 0001_allOffProps | ||
|
||
paths: | ||
/sample_resource: | ||
post: | ||
operationId: createResOne | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/create_res_one" | ||
responses: | ||
'201': | ||
description: Ok | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/standard_response_res_one" | ||
components: | ||
schemas: | ||
standard_response_result: | ||
properties: | ||
result: | ||
type: object | ||
properties: | ||
status: | ||
type: boolean | ||
http_code: | ||
type: integer | ||
errors: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/standard_error' | ||
info: | ||
type: string | ||
trace_id: | ||
type: string | ||
num_elements: | ||
type: integer | ||
required: | ||
- status | ||
- http_code | ||
- trace_id | ||
standard_error: | ||
type: object | ||
properties: | ||
code: | ||
type: integer | ||
message: | ||
type: string | ||
standard_response_res_one: | ||
type: object | ||
allOf: | ||
- $ref: '#/components/schemas/standard_response_result' | ||
properties: | ||
data: | ||
properties: | ||
name: | ||
type: string | ||
create_res_one: | ||
type: object | ||
properties: | ||
name: | ||
type: string |