Open
Description
openapi-python-client
: 0.21.4
Python: 3.10
OpenAPI spec version: 3.0.3
In OpenAPI specs where a property has the same name as the snake cased class name (in the example below, the snake casing is the lower case, but if it was, ex, InstagramId
, then this would happen with a property named instagram_id
) the code generated has a duplicated variable name (see image below).
The suggested fix is that the return variable name should have an underscore _
, in this example, email_
.
"Email": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"email",
"type"
]
},

Metadata
Metadata
Assignees
Labels
No labels