-
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.
Fix #4618: process array schema in OpenAPI 3.1 same as in OpenAPI 3.0
- Loading branch information
Showing
3 changed files
with
98 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
78 changes: 78 additions & 0 deletions
78
modules/swagger-core/src/test/resources/specFiles/3.1.0/list-3.1.json
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,78 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"info": { | ||
"title": "OpenAPI definition", | ||
"version": "v0" | ||
}, | ||
"paths": { | ||
"/some/call": { | ||
"get": { | ||
"description": "Some operation description", | ||
"operationId": "getSome", | ||
"responses": { | ||
"200": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/SomeParentObject" | ||
} | ||
} | ||
}, | ||
"description": "OK" | ||
} | ||
}, | ||
"summary": "Some summary", | ||
"tags": [ | ||
"Some" | ||
] | ||
} | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"description": "Generated server url", | ||
"url": "http://localhost:8080" | ||
} | ||
], | ||
"tags": [ | ||
{ | ||
"description": "some actions", | ||
"name": "Some" | ||
} | ||
], | ||
"components": { | ||
"schemas": { | ||
"SomeChildObject": { | ||
"description": "Some child object", | ||
"properties": { | ||
"id": { | ||
"description": "id", | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "name", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"SomeParentObject": { | ||
"description": "Some parent object", | ||
"properties": { | ||
"id": { | ||
"description": "id", | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"someList": { | ||
"description": "list", | ||
"items": { | ||
"$ref": "#/components/schemas/SomeChildObject" | ||
}, | ||
"type": "array" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |