Skip to content

Instantly share code, notes, and snippets.

@dtkav
Created August 12, 2020 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtkav/a93a0a11374aa5637513f20b3991a249 to your computer and use it in GitHub Desktop.
Save dtkav/a93a0a11374aa5637513f20b3991a249 to your computer and use it in GitHub Desktop.
enum bug repro
{
"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