Created
January 10, 2019 15:45
-
-
Save rzane/724ad1ed08721d04966f121461c0737d to your computer and use it in GitHub Desktop.
Reproduce OpenAPI anyFromJSON issue
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
openapi: 3.0.0 | |
info: | |
title: MyAPI | |
description: MY API | |
version: 0.0.0 | |
servers: | |
- url: http://localhost:8080/api/ | |
paths: | |
/example: | |
get: | |
operationId: getExample | |
responses: | |
"200": | |
description: "Success" | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Example" | |
components: | |
schemas: | |
Example: | |
required: | |
- data | |
properties: | |
data: | |
type: object |
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
{ | |
"scripts": { | |
"generate": "openapi-generator generate -i openapi.yaml -o src -g typescript-fetch", | |
"test": "tsc -p src --noEmit" | |
}, | |
"devDependencies": { | |
"@openapitools/openapi-generator-cli": "^0.0.7-4.0.0-beta", | |
"typescript": "^3.2.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment