Created
August 12, 2020 01:59
-
-
Save dtkav/a93a0a11374aa5637513f20b3991a249 to your computer and use it in GitHub Desktop.
enum bug repro
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.2", | |
"info": { | |
"title": "My Test API", | |
"description": "An API for testing openapi-python-client", | |
"version": "0.1.0" | |
}, | |
"paths": { | |
"/tests/": { | |
"get": { | |
"description": "Get a list of things ", | |
"operationId": "getUserList", | |
"parameters": [ | |
{ | |
"required": true, | |
"schema": { | |
"title": "An Enum Value", | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/AnEnum" | |
} | |
}, | |
"name": "an_enum_value", | |
"in": "query" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Successful Response" | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"AnEnum": { | |
"title": "AnEnum", | |
"enum": [ | |
"FIRST_VALUE", | |
"SECOND_VALUE", | |
"modifiedAt:desc" | |
], | |
"description": "For testing Enums in all the ways they can be used " | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment