-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix map and free form object detection issue in 3.1 spec (#17624)
* fix map issue in 3.1 spec * fix, add tests * update samples * update * manully fix spec * revert * fix rust model
- Loading branch information
Showing
8 changed files
with
118 additions
and
12 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
53 changes: 53 additions & 0 deletions
53
modules/openapi-generator/src/test/resources/3_1/schema.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,53 @@ | ||
openapi: 3.1.0 | ||
servers: | ||
- url: 'http://petstore.swagger.io/v2' | ||
info: | ||
description: >- | ||
This is a sample server Petstore server. For this sample, you can use the api key | ||
`special-key` to test the authorization filters. | ||
version: 1.0.0 | ||
title: OpenAPI Petstore | ||
license: | ||
name: Apache-2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
tags: | ||
- name: pet | ||
description: Everything about your Pets | ||
- name: store | ||
description: Access to Petstore orders | ||
- name: user | ||
description: Operations about user | ||
paths: | ||
/dummy: | ||
post: | ||
tags: | ||
- dummy | ||
summary: dummy operation | ||
description: '' | ||
operationId: dummy_operation | ||
responses: | ||
'200': | ||
description: successful operation | ||
'405': | ||
description: Invalid input | ||
externalDocs: | ||
description: Find out more about Swagger | ||
url: 'http://swagger.io' | ||
components: | ||
schemas: | ||
Misc: | ||
description: Schema tests | ||
type: object | ||
properties: | ||
free_form_object_1: | ||
type: object | ||
free_form_object_2: | ||
type: object | ||
additionalProperties: true | ||
free_form_object_3: | ||
type: object | ||
additionalProperties: {} | ||
map1: | ||
type: object | ||
additionalProperties: | ||
type: string |
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