Created
June 26, 2019 08:32
-
-
Save Sevenarth/595ce008748a0fa1e43bcfcdcaffe229 to your computer and use it in GitHub Desktop.
OpenAPI Codegen 4.0.2 XML name bug
This file contains hidden or 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
| openapi: 3.0.1 | |
| info: | |
| title: XmlName bug | |
| version: 'OpenAPI Codegen 4.0.2' | |
| paths: | |
| /rootArray: | |
| post: | |
| operationId: rootArray | |
| requestBody: | |
| required: true | |
| content: | |
| text/xml: | |
| schema: | |
| $ref: '#/components/schemas/Entries' | |
| responses: | |
| 200: | |
| description: 'OK' | |
| /arrayInObject: | |
| post: | |
| operationId: arrayInObject | |
| requestBody: | |
| required: true | |
| content: | |
| text/xml: | |
| schema: | |
| $ref: '#/components/schemas/EntriesObject' | |
| responses: | |
| 200: | |
| description: 'OK' | |
| /wholeObject: | |
| post: | |
| operationId: wholeObject | |
| requestBody: | |
| required: true | |
| content: | |
| text/xml: | |
| schema: | |
| $ref: '#/components/schemas/WholeObject' | |
| responses: | |
| 200: | |
| description: 'OK' | |
| components: | |
| schemas: | |
| Entries: | |
| type: array | |
| xml: | |
| wrapped: true | |
| name: Entries | |
| items: | |
| $ref: '#/components/schemas/Entry' | |
| Entry: | |
| type: object | |
| xml: | |
| name: Entry | |
| properties: | |
| value: | |
| type: string | |
| example: '1234' | |
| xml: | |
| attribute: true | |
| name: value | |
| EntriesObject: | |
| type: object | |
| xml: | |
| name: Entries | |
| properties: | |
| entries: | |
| type: array | |
| items: | |
| $ref: '#/components/schemas/Entry' | |
| WholeObject: | |
| type: object | |
| xml: | |
| name: Entries | |
| properties: | |
| entries: | |
| type: array | |
| items: | |
| type: object | |
| xml: | |
| name: Entry | |
| properties: | |
| value: | |
| type: string | |
| example: '1234' | |
| xml: | |
| attribute: true | |
| name: value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment