Description
- some python reserved keywords (self, None) are not escaped properly
- some python3 reserved keywords (True, False) are not escaped
Swagger-codegen version
2.2.3
Swagger declaration file content or url
%YAML 1.0
---
swagger: '2.0'
info:
version: v1
paths:
/link:
get:
responses:
"200":
schema:
$ref: "#/definitions/True"
"400":
schema:
$ref: "#/definitions/self"
definitions:
True:
type: object
properties:
True:
type: string
self:
type: object
properties:
self:
type: integer
this produce a Link model like
#swagger_server/models/self.py
class Self(Model):
def __init__(self, self: int=None):
"..."
self._self = self
#swagger_server/models/true.py
class True(Model):
def __init__(self, true: str=None):
"..."
Suggest a fix/enhancement
setReservedWordsLowerCase is called twice, the second time with an incomplete list
Description
Swagger-codegen version
2.2.3
Swagger declaration file content or url
this produce a Link model like
Suggest a fix/enhancement
setReservedWordsLowerCase is called twice, the second time with an incomplete list