mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 09:26:10 +00:00
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
This commit is contained in:
@@ -1 +1 @@
|
||||
4.2.3-SNAPSHOT
|
||||
5.0.0-SNAPSHOT
|
||||
@@ -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}"
|
||||
|
||||
@@ -4,7 +4,7 @@ info:
|
||||
the api key `special-key` to test the authorization filters.
|
||||
license:
|
||||
name: Apache-2.0
|
||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
url: https://www.apache.org/licenses/LICENSE-2.0.html
|
||||
title: OpenAPI Petstore
|
||||
version: 1.0.0
|
||||
servers:
|
||||
@@ -32,7 +32,7 @@ paths:
|
||||
required: true
|
||||
x-body-name: body
|
||||
responses:
|
||||
405:
|
||||
"405":
|
||||
content: {}
|
||||
description: Invalid input
|
||||
security:
|
||||
@@ -58,13 +58,13 @@ paths:
|
||||
required: true
|
||||
x-body-name: body
|
||||
responses:
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid ID supplied
|
||||
404:
|
||||
"404":
|
||||
content: {}
|
||||
description: Pet not found
|
||||
405:
|
||||
"405":
|
||||
content: {}
|
||||
description: Validation exception
|
||||
security:
|
||||
@@ -97,7 +97,7 @@ paths:
|
||||
type: array
|
||||
style: form
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -110,7 +110,7 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid status value
|
||||
security:
|
||||
@@ -139,7 +139,7 @@ paths:
|
||||
type: array
|
||||
style: form
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -152,7 +152,7 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid tag value
|
||||
security:
|
||||
@@ -179,7 +179,7 @@ paths:
|
||||
format: int64
|
||||
type: integer
|
||||
responses:
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid pet value
|
||||
security:
|
||||
@@ -202,7 +202,7 @@ paths:
|
||||
format: int64
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -211,10 +211,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:
|
||||
@@ -246,7 +246,7 @@ paths:
|
||||
type: string
|
||||
x-body-name: body
|
||||
responses:
|
||||
405:
|
||||
"405":
|
||||
content: {}
|
||||
description: Invalid input
|
||||
security:
|
||||
@@ -283,7 +283,7 @@ paths:
|
||||
type: string
|
||||
x-body-name: body
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -303,7 +303,7 @@ paths:
|
||||
description: Returns a map of status codes to quantities
|
||||
operationId: get_inventory
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -330,7 +330,7 @@ paths:
|
||||
required: true
|
||||
x-body-name: body
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -339,7 +339,7 @@ paths:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
description: successful operation
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid Order
|
||||
summary: Place an order for a pet
|
||||
@@ -360,10 +360,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
|
||||
@@ -385,7 +385,7 @@ paths:
|
||||
minimum: 1
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -394,10 +394,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
|
||||
@@ -486,7 +486,7 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -506,7 +506,7 @@ paths:
|
||||
schema:
|
||||
format: date-time
|
||||
type: string
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid username/password supplied
|
||||
summary: Logs user into the system
|
||||
@@ -536,10 +536,10 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid username supplied
|
||||
404:
|
||||
"404":
|
||||
content: {}
|
||||
description: User not found
|
||||
summary: Delete user
|
||||
@@ -556,7 +556,7 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
@@ -565,10 +565,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
|
||||
@@ -594,10 +594,10 @@ paths:
|
||||
required: true
|
||||
x-body-name: body
|
||||
responses:
|
||||
400:
|
||||
"400":
|
||||
content: {}
|
||||
description: Invalid user supplied
|
||||
404:
|
||||
"404":
|
||||
content: {}
|
||||
description: User not found
|
||||
summary: Updated user
|
||||
|
||||
Reference in New Issue
Block a user