forked from loafle/openapi-generator-original
[Python] fix numeric enum in python flask, aiohttp (#5019)
* minor code format fix * fix numeric enum in python flask and aiohttp * add python-server-all.sh to ensure-up-to-date
This commit is contained in:
@@ -162,7 +162,7 @@ class Order(Model):
|
||||
:param status: The status of this Order.
|
||||
:type status: str
|
||||
"""
|
||||
allowed_values = ["placed", "approved", "delivered"]
|
||||
allowed_values = ["placed", "approved", "delivered"] # noqa: E501
|
||||
if status not in allowed_values:
|
||||
raise ValueError(
|
||||
"Invalid value for `status` ({0}), must be one of {1}"
|
||||
|
||||
@@ -189,7 +189,7 @@ class Pet(Model):
|
||||
:param status: The status of this Pet.
|
||||
:type status: str
|
||||
"""
|
||||
allowed_values = ["available", "pending", "sold"]
|
||||
allowed_values = ["available", "pending", "sold"] # noqa: E501
|
||||
if status not in allowed_values:
|
||||
raise ValueError(
|
||||
"Invalid value for `status` ({0}), must be one of {1}"
|
||||
|
||||
Reference in New Issue
Block a user