Created
November 30, 2021 11:57
-
-
Save ponelat/8575a984f6ce1d3c13db20b2d8ca683e to your computer and use it in GitHub Desktop.
timestamp issue in codegen
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
| swagger: '2.0' | |
| info: | |
| title: Example to describe swagger codegen issue | |
| description: | | |
| Example Definition with Timestamp class as `java.sql.Timestamp` instead of custom model. | |
| version: v1 | |
| paths: | |
| /foo: | |
| post: | |
| operationId: MakeFoo | |
| description: ok | |
| parameters: | |
| - name: body | |
| in: body | |
| schema: | |
| type: object | |
| properties: | |
| timestamp: | |
| $ref: '#/definitions/Timestamp' | |
| responses: | |
| default: | |
| description: Successful operation | |
| definitions: | |
| Timestamp: | |
| type: object | |
| properties: | |
| epochMillis: | |
| description: Milliseconds since the Unix epoch | |
| type: string | |
| format: int64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment