[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:
William Cheng
2020-01-19 15:25:20 +08:00
committed by GitHub
parent 6a34706a9b
commit fff759b79c
9 changed files with 109 additions and 103 deletions

View File

@@ -31,7 +31,7 @@ paths:
description: Pet object that needs to be added to the store
required: true
responses:
405:
"405":
content: {}
description: Invalid input
security:
@@ -56,13 +56,13 @@ paths:
description: Pet object that needs to be added to the store
required: true
responses:
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Pet not found
405:
"405":
content: {}
description: Validation exception
security:
@@ -95,7 +95,7 @@ paths:
type: array
style: form
responses:
200:
"200":
content:
application/xml:
schema:
@@ -108,7 +108,7 @@ paths:
$ref: '#/components/schemas/Pet'
type: array
description: successful operation
400:
"400":
content: {}
description: Invalid status value
security:
@@ -137,7 +137,7 @@ paths:
type: array
style: form
responses:
200:
"200":
content:
application/xml:
schema:
@@ -150,7 +150,7 @@ paths:
$ref: '#/components/schemas/Pet'
type: array
description: successful operation
400:
"400":
content: {}
description: Invalid tag value
security:
@@ -177,7 +177,7 @@ paths:
format: int64
type: integer
responses:
400:
"400":
content: {}
description: Invalid pet value
security:
@@ -200,7 +200,7 @@ paths:
format: int64
type: integer
responses:
200:
"200":
content:
application/xml:
schema:
@@ -209,10 +209,10 @@ paths:
schema:
$ref: '#/components/schemas/Pet'
description: successful operation
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Pet not found
security:
@@ -243,7 +243,7 @@ paths:
description: Updated status of the pet
type: string
responses:
405:
"405":
content: {}
description: Invalid input
security:
@@ -278,7 +278,7 @@ paths:
format: binary
type: string
responses:
200:
"200":
content:
application/json:
schema:
@@ -297,7 +297,7 @@ paths:
description: Returns a map of status codes to quantities
operationId: get_inventory
responses:
200:
"200":
content:
application/json:
schema:
@@ -323,7 +323,7 @@ paths:
description: order placed for purchasing the pet
required: true
responses:
200:
"200":
content:
application/xml:
schema:
@@ -332,7 +332,7 @@ paths:
schema:
$ref: '#/components/schemas/Order'
description: successful operation
400:
"400":
content: {}
description: Invalid Order
summary: Place an order for a pet
@@ -353,10 +353,10 @@ paths:
schema:
type: string
responses:
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Order not found
summary: Delete purchase order by ID
@@ -378,7 +378,7 @@ paths:
minimum: 1
type: integer
responses:
200:
"200":
content:
application/xml:
schema:
@@ -387,10 +387,10 @@ paths:
schema:
$ref: '#/components/schemas/Order'
description: successful operation
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Order not found
summary: Find purchase order by ID
@@ -476,7 +476,7 @@ paths:
schema:
type: string
responses:
200:
"200":
content:
application/xml:
schema:
@@ -496,7 +496,7 @@ paths:
schema:
format: date-time
type: string
400:
"400":
content: {}
description: Invalid username/password supplied
summary: Logs user into the system
@@ -526,10 +526,10 @@ paths:
schema:
type: string
responses:
400:
"400":
content: {}
description: Invalid username supplied
404:
"404":
content: {}
description: User not found
summary: Delete user
@@ -546,7 +546,7 @@ paths:
schema:
type: string
responses:
200:
"200":
content:
application/xml:
schema:
@@ -555,10 +555,10 @@ paths:
schema:
$ref: '#/components/schemas/User'
description: successful operation
400:
"400":
content: {}
description: Invalid username supplied
404:
"404":
content: {}
description: User not found
summary: Get user by user name
@@ -583,10 +583,10 @@ paths:
description: Updated user object
required: true
responses:
400:
"400":
content: {}
description: Invalid user supplied
404:
"404":
content: {}
description: User not found
summary: Updated user