-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 gradle/enable-lazy-configuration
- Loading branch information
Showing
5 changed files
with
290 additions
and
29 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
29 changes: 29 additions & 0 deletions
29
modules/swagger-core/src/test/resources/specFiles/3.1.0/issue-4737-3.1.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,29 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenAPI definition | ||
version: v0 | ||
servers: | ||
- url: http://localhost | ||
description: Generated server url | ||
paths: {} | ||
components: | ||
schemas: | ||
RequestDto: | ||
properties: | ||
personalNumber: | ||
type: string | ||
webhooks: | ||
newPet: | ||
post: | ||
requestBody: | ||
description: Information about a new pet in the system | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/RequestDto' | ||
description: Webhook Pet | ||
responses: | ||
'200': | ||
description: >- | ||
Return a 200 status to indicate that the data was received | ||
successfully |
124 changes: 124 additions & 0 deletions
124
modules/swagger-core/src/test/resources/specFiles/3.1.0/specWithReferredSchemas-3.1.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,124 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenAPI definition | ||
version: v0 | ||
servers: | ||
- url: http://localhost | ||
description: Generated server url | ||
paths: | ||
/users: | ||
get: | ||
summary: Get list of all users | ||
operationId: usersList | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
maxLength: 100 | ||
minLength: 1 | ||
components: | ||
schemas: | ||
ResponseDefinition: | ||
properties: | ||
personalNumber: | ||
type: string | ||
WebhookResponseDefinition: | ||
properties: | ||
personalNumber: | ||
type: integer | ||
WebhookOperationDefinition: | ||
properties: | ||
personalNumber: | ||
type: number | ||
RequestBodyDefinition: | ||
properties: | ||
personalNumber: | ||
type: string | ||
ParameterDefinition: | ||
properties: | ||
parameterName: | ||
type: string | ||
HeaderDefinition: | ||
type: string | ||
description: header ref | ||
CallbackDefinition: | ||
description: callback ref | ||
type: string | ||
PathItemDefinition: | ||
description: pathItem ref | ||
type: string | ||
UnusedDefinition: | ||
description: unused definition | ||
type: string | ||
minLength: 1 | ||
maxLength: 100 | ||
responses: | ||
OK: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/ResponseDefinition" | ||
requestBodies: | ||
requestBody1: | ||
description: request body | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/RequestBodyDefinition" | ||
parameters: | ||
parameter1: | ||
description: request body | ||
name: parameter | ||
in: query | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/ParameterDefinition" | ||
headers: | ||
header1: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/HeaderDefinition" | ||
callbacks: | ||
myEvent: # Event name | ||
"{$request.body#/callbackUrl}": | ||
post: | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/CallbackDefinition" | ||
pathItems: | ||
pathItem1: | ||
get: | ||
summary: Get list of all users | ||
operationId: usersList | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/PathItemDefinition" | ||
webhooks: | ||
newPet: | ||
post: | ||
requestBody: | ||
description: Information about a new pet in the system | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/WebhookOperationDefinition' | ||
description: Webhook Pet | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/WebhookResponseDefinition' |