[python-nextgen] Better docstring/documentation (#14880)

* better docstring/documentation in python nextgen client

* update instruction in test files
This commit is contained in:
William Cheng 2023-03-06 21:22:43 +08:00 committed by GitHub
parent 8ede021ec5
commit d497c3d087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
187 changed files with 811 additions and 790 deletions

View File

@ -31,10 +31,6 @@ class ApiClient(object):
the methods and models for each application are generated from the OpenAPI
templates.
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
:param configuration: .Configuration object for this client
:param header_name: a header to pass when making calls to the API.
:param header_value: a header value to pass when making calls to

View File

@ -15,7 +15,6 @@ import urllib3
import http.client as httplib
from {{packageName}}.exceptions import ApiValueError
JSON_SCHEMA_VALIDATION_KEYWORDS = {
'multipleOf', 'maximum', 'exclusiveMaximum',
'minimum', 'exclusiveMinimum', 'maxLength',
@ -23,10 +22,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = {
}
class Configuration(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""This class contains various settings of the API client.
:param host: Base url.
:param api_key: Dict to store API key(s).

View File

@ -15,11 +15,10 @@ from pydantic import StrictStr, Field
{{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ANY_OF_SCHEMAS = [{{#anyOf}}"{{.}}"{{^-last}}, {{/-last}}{{/anyOf}}]
class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
{{{description}}}{{^description}}{{{classname}}}{{/description}}
"""
{{#composedSchemas.anyOf}}
# data type: {{{dataType}}}
{{vendorExtensions.x-py-name}}: {{{vendorExtensions.x-py-typing}}}

View File

@ -8,21 +8,19 @@ from aenum import Enum, no_arg
class {{classname}}({{vendorExtensions.x-py-enum-type}}, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
{{{description}}}{{^description}}{{{classname}}}{{/description}}
"""
"""
allowed enum values
"""
{{#allowableValues}}
{{#enumVars}}
{{{name}}} = {{{value}}}
{{/enumVars}}
{{#defaultValue}}
#
@classmethod
def _missing_value_(cls, value):

View File

@ -17,10 +17,8 @@ import {{{modelPackage}}}
{{/vendorExtensions.x-py-model-imports}}
class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
{{{description}}}{{^description}}{{{classname}}}{{/description}}
"""
{{#vars}}
{{name}}: {{{vendorExtensions.x-py-typing}}}
@ -255,4 +253,4 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}
{{/isAdditionalPropertiesTrue}}
return _obj
{{/hasChildren}}
{{/hasChildren}}

View File

@ -15,10 +15,8 @@ from pydantic import StrictStr, Field
{{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ONE_OF_SCHEMAS = [{{#oneOf}}"{{.}}"{{^-last}}, {{/-last}}{{/oneOf}}]
class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
{{{description}}}{{^description}}{{{classname}}}{{/description}}
"""
{{#composedSchemas.oneOf}}
# data type: {{{dataType}}}

View File

@ -1,17 +1,19 @@
"""
{{#appName}}
{{{.}}}
{{/appName}}
{{/appName}}
{{#appDescription}}
{{{.}}} # noqa: E501
{{/appDescription}}
{{/appDescription}}
{{#version}}
The version of the OpenAPI document: {{{.}}}
{{/version}}
{{#infoEmail}}
Contact: {{{.}}}
{{/infoEmail}}
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -64,11 +64,6 @@ class HttpSigningConfiguration(object):
and optionally the body of the HTTP request, then signing the hash value using
a private key. The 'Authorization' header is added to outbound HTTP requests.
NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
:param key_id: A string value specifying the identifier of the cryptographic key,
when signing HTTP requests.
:param signing_scheme: A string value specifying the signature scheme, when

View File

@ -9,7 +9,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import absolute_import
@ -37,10 +39,6 @@ class ApiClient(object):
the methods and models for each application are generated from the OpenAPI
templates.
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
:param configuration: .Configuration object for this client
:param header_name: a header to pass when making calls to the API.
:param header_value: a header value to pass when making calls to

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,7 +24,6 @@ import urllib3
import http.client as httplib
from openapi_client.exceptions import ApiValueError
JSON_SCHEMA_VALIDATION_KEYWORDS = {
'multipleOf', 'maximum', 'exclusiveMaximum',
'minimum', 'exclusiveMinimum', 'maxLength',
@ -30,10 +31,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = {
}
class Configuration(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""This class contains various settings of the API client.
:param host: Base url.
:param api_key: Dict to store API key(s).

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -8,7 +8,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class Bird(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Bird
"""
size: Optional[StrictStr] = None
color: Optional[StrictStr] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class Category(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Category
"""
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -23,10 +25,8 @@ from pydantic import BaseModel, Field, StrictStr
from openapi_client.models.query import Query
class DataQuery(Query):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DataQuery
"""
suffix: Optional[StrictStr] = Field(None, description="test suffix")
text: Optional[StrictStr] = Field(None, description="Some text containing white spaces")

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class DataQueryAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DataQueryAllOf
"""
suffix: Optional[StrictStr] = Field(None, description="test suffix")
text: Optional[StrictStr] = Field(None, description="Some text containing white spaces")

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -23,10 +25,8 @@ from pydantic import BaseModel, StrictInt, StrictStr, conlist, validator
from openapi_client.models.string_enum_ref import StringEnumRef
class DefaultValue(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
to test the default value of properties
"""
array_string_enum_ref_default: Optional[conlist(StringEnumRef)] = None
array_string_enum_default: Optional[conlist(StrictStr)] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -24,10 +26,8 @@ from openapi_client.models.category import Category
from openapi_client.models.tag import Tag
class Pet(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Pet
"""
id: Optional[StrictInt] = None
name: StrictStr = ...

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import List, Optional
from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist, validator
class Query(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Query
"""
id: Optional[StrictInt] = Field(None, description="Query")
outcomes: Optional[conlist(StrictStr)] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,16 +23,13 @@ from aenum import Enum, no_arg
class StringEnumRef(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
StringEnumRef
"""
"""
allowed enum values
"""
SUCCESS = 'success'
FAILURE = 'failure'
UNCLASSIFIED = 'unclassified'

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class Tag(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Tag
"""
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
"""
size: Optional[StrictStr] = None
color: Optional[StrictStr] = None

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import List, Optional
from pydantic import BaseModel, StrictStr, conlist
class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
"""
values: Optional[conlist(StrictStr)] = None
__properties = ["values"]

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -8,7 +8,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -5,7 +5,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import absolute_import
@ -36,10 +38,6 @@ class ApiClient(object):
the methods and models for each application are generated from the OpenAPI
templates.
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
:param configuration: .Configuration object for this client
:param header_name: a header to pass when making calls to the API.
:param header_value: a header value to pass when making calls to

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,7 +22,6 @@ import urllib3
import http.client as httplib
from petstore_api.exceptions import ApiValueError
JSON_SCHEMA_VALIDATION_KEYWORDS = {
'multipleOf', 'maximum', 'exclusiveMaximum',
'minimum', 'exclusiveMinimum', 'maxLength',
@ -28,10 +29,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = {
}
class Configuration(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""This class contains various settings of the API client.
:param host: Base url.
:param api_key: Dict to store API key(s).

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -7,7 +7,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Dict, Optional
from pydantic import BaseModel, StrictStr
class AdditionalPropertiesClass(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
AdditionalPropertiesClass
"""
map_property: Optional[Dict[str, StrictStr]] = None
map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Any, Optional
from pydantic import BaseModel, Field, StrictStr
class AllOfWithSingleRef(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
AllOfWithSingleRef
"""
username: Optional[StrictStr] = None
single_ref_type: Optional[Any] = Field(None, alias="SingleRefType")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class Animal(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Animal
"""
class_name: StrictStr = Field(..., alias="className")
color: Optional[StrictStr] = 'red'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -24,11 +26,10 @@ from pydantic import StrictStr, Field
ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"]
class AnyOfColor(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Any of RGB array, RGBA array, or hex string.
"""
# data type: List[int]
anyof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.")
# data type: List[int]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -26,11 +28,10 @@ from pydantic import StrictStr, Field
ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"]
class AnyOfPig(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
AnyOfPig
"""
# data type: BasquePig
anyof_schema_1_validator: Optional[BasquePig] = None
# data type: DanishPig

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class ApiResponse(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ApiResponse
"""
code: Optional[StrictInt] = None
type: Optional[StrictStr] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import List, Optional
from pydantic import BaseModel, Field, conlist
class ArrayOfArrayOfNumberOnly(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ArrayOfArrayOfNumberOnly
"""
array_array_number: Optional[conlist(conlist(float))] = Field(None, alias="ArrayArrayNumber")
__properties = ["ArrayArrayNumber"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import List, Optional
from pydantic import BaseModel, Field, conlist
class ArrayOfNumberOnly(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ArrayOfNumberOnly
"""
array_number: Optional[conlist(float)] = Field(None, alias="ArrayNumber")
__properties = ["ArrayNumber"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictInt, StrictStr, conlist
from petstore_api.models.read_only_first import ReadOnlyFirst
class ArrayTest(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ArrayTest
"""
array_of_string: Optional[conlist(StrictStr, max_items=3, min_items=0)] = None
array_array_of_integer: Optional[conlist(conlist(StrictInt))] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ import json
from pydantic import BaseModel, Field, StrictStr
class BasquePig(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
BasquePig
"""
class_name: StrictStr = Field(..., alias="className")
color: StrictStr = ...

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class Capitalization(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Capitalization
"""
small_camel: Optional[StrictStr] = Field(None, alias="smallCamel")
capital_camel: Optional[StrictStr] = Field(None, alias="CapitalCamel")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictBool
from petstore_api.models.animal import Animal
class Cat(Animal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Cat
"""
declawed: Optional[StrictBool] = None
__properties = ["className", "color", "declawed"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictBool
class CatAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
CatAllOf
"""
declawed: Optional[StrictBool] = None
__properties = ["declawed"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class Category(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Category
"""
id: Optional[StrictInt] = None
name: StrictStr = ...

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class ClassModel(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Model for testing model with \"_class\" property
"""
var_class: Optional[StrictStr] = Field(None, alias="_class")
__properties = ["_class"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class Client(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Client
"""
client: Optional[StrictStr] = None
__properties = ["client"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -24,10 +26,8 @@ from pydantic import StrictStr, Field
COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"]
class Color(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
RGB array, RGBA array, or hex string.
"""
# data type: List[int]
oneof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ import json
from pydantic import BaseModel, Field, StrictInt, StrictStr
class DanishPig(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DanishPig
"""
class_name: StrictStr = Field(..., alias="className")
size: StrictInt = ...

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class DeprecatedObject(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DeprecatedObject
"""
name: Optional[StrictStr] = None
__properties = ["name"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictStr
from petstore_api.models.animal import Animal
class Dog(Animal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Dog
"""
breed: Optional[StrictStr] = None
__properties = ["className", "color", "breed"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class DogAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DogAllOf
"""
breed: Optional[StrictStr] = None
__properties = ["breed"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class DummyModel(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
DummyModel
"""
category: Optional[StrictStr] = None
self_ref: Optional[SelfReferenceModel] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import List, Optional
from pydantic import BaseModel, StrictStr, conlist, validator
class EnumArrays(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
EnumArrays
"""
just_symbol: Optional[StrictStr] = None
array_enum: Optional[conlist(StrictStr)] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class EnumClass(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
EnumClass
"""
"""
allowed enum values
"""
ABC = '_abc'
MINUS_EFG = '-efg'
LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS = '(xyz)'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -25,10 +27,8 @@ from petstore_api.models.outer_enum_integer import OuterEnumInteger
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue
class EnumTest(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
EnumTest
"""
enum_string: Optional[StrictStr] = None
enum_string_required: StrictStr = ...

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class File(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Must be named `File` for test.
"""
source_uri: Optional[StrictStr] = Field(None, alias="sourceURI", description="Test capitalization")
__properties = ["sourceURI"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, conlist
from petstore_api.models.file import File
class FileSchemaTestClass(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
FileSchemaTestClass
"""
file: Optional[File] = None
files: Optional[conlist(File)] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class Foo(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Foo
"""
bar: Optional[StrictStr] = 'bar'
__properties = ["bar"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel
from petstore_api.models.foo import Foo
class FooGetDefaultResponse(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
FooGetDefaultResponse
"""
string: Optional[Foo] = None
__properties = ["string"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictBytes, StrictInt, StrictStr, condecimal, confloat, conint, constr, validator
class FormatTest(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
FormatTest
"""
integer: Optional[conint(strict=True, le=100, ge=10)] = None
int32: Optional[conint(strict=True, le=200, ge=20)] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class HasOnlyReadOnly(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
HasOnlyReadOnly
"""
bar: Optional[StrictStr] = None
foo: Optional[StrictStr] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class HealthCheckResult(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
"""
nullable_message: Optional[StrictStr] = Field(None, alias="NullableMessage")
__properties = ["NullableMessage"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictStr
class List(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
List
"""
var_123_list: Optional[StrictStr] = Field(None, alias="123-list")
__properties = ["123-list"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Dict, Optional
from pydantic import BaseModel, StrictBool, StrictStr, validator
class MapTest(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
MapTest
"""
map_map_of_string: Optional[Dict[str, Dict[str, StrictStr]]] = None
map_of_enum_string: Optional[Dict[str, StrictStr]] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictStr
from petstore_api.models.animal import Animal
class MixedPropertiesAndAdditionalPropertiesClass(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
MixedPropertiesAndAdditionalPropertiesClass
"""
uuid: Optional[StrictStr] = None
date_time: Optional[datetime] = Field(None, alias="dateTime")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictInt, StrictStr
class Model200Response(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Model for testing model name starting with number
"""
name: Optional[StrictInt] = None
var_class: Optional[StrictStr] = Field(None, alias="class")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictInt
class ModelReturn(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Model for testing reserved words
"""
var_return: Optional[StrictInt] = Field(None, alias="return")
__properties = ["return"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictInt, StrictStr
class Name(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Model for testing model name same as property name
"""
name: StrictInt = ...
snake_case: Optional[StrictInt] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Any, Dict, List, Optional
from pydantic import BaseModel, StrictBool, StrictInt, StrictStr, conlist
class NullableClass(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
NullableClass
"""
required_integer_prop: Optional[StrictInt] = ...
integer_prop: Optional[StrictInt] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field
class NumberOnly(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
NumberOnly
"""
just_number: Optional[float] = Field(None, alias="JustNumber")
__properties = ["JustNumber"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictStr, conlist
from petstore_api.models.deprecated_object import DeprecatedObject
class ObjectWithDeprecatedFields(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ObjectWithDeprecatedFields
"""
uuid: Optional[StrictStr] = None
id: Optional[float] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, validator
class Order(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Order
"""
id: Optional[StrictInt] = None
pet_id: Optional[StrictInt] = Field(None, alias="petId")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictBool, StrictStr
class OuterComposite(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterComposite
"""
my_number: Optional[float] = None
my_string: Optional[StrictStr] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class OuterEnum(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterEnum
"""
"""
allowed enum values
"""
PLACED = 'placed'
APPROVED = 'approved'
DELIVERED = 'delivered'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class OuterEnumDefaultValue(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterEnumDefaultValue
"""
"""
allowed enum values
"""
PLACED = 'placed'
APPROVED = 'approved'
DELIVERED = 'delivered'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class OuterEnumInteger(int, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterEnumInteger
"""
"""
allowed enum values
"""
NUMBER_0 = 0
NUMBER_1 = 1
NUMBER_2 = 2

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class OuterEnumIntegerDefaultValue(int, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterEnumIntegerDefaultValue
"""
"""
allowed enum values
"""
NUMBER_0 = 0
NUMBER_1 = 1
NUMBER_2 = 2

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -23,10 +25,8 @@ from petstore_api.models.outer_enum import OuterEnum
from petstore_api.models.outer_enum_integer import OuterEnumInteger
class OuterObjectWithEnumProperty(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
OuterObjectWithEnumProperty
"""
str_value: Optional[OuterEnum] = None
value: OuterEnumInteger = ...

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -23,10 +25,8 @@ from petstore_api.models.category import Category
from petstore_api.models.tag import Tag
class Pet(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Pet
"""
id: Optional[StrictInt] = None
category: Optional[Category] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -26,10 +28,8 @@ from pydantic import StrictStr, Field
PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"]
class Pig(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Pig
"""
# data type: BasquePig
oneof_schema_1_validator: Optional[BasquePig] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictStr
class ReadOnlyFirst(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
ReadOnlyFirst
"""
bar: Optional[StrictStr] = None
baz: Optional[StrictStr] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt
class SelfReferenceModel(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
SelfReferenceModel
"""
size: Optional[StrictInt] = None
nested: Optional[DummyModel] = None

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class SingleRefType(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
SingleRefType
"""
"""
allowed enum values
"""
ADMIN = 'admin'
USER = 'user'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -20,16 +22,13 @@ from aenum import Enum, no_arg
class SpecialCharacterEnum(str, Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
SpecialCharacterEnum
"""
"""
allowed enum values
"""
ENUM_456 = '456'
ENUM_123ABC = '123abc'
UNDERSCORE = '_'

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, Field, StrictInt
class SpecialModelName(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
SpecialModelName
"""
special_property_name: Optional[StrictInt] = Field(None, alias="$special[property.name]")
__properties = ["$special[property.name]"]

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictInt, StrictStr, validator
from petstore_api.models.category import Category
class SpecialName(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
SpecialName
"""
var_property: Optional[StrictInt] = Field(None, alias="property")
var_async: Optional[Category] = Field(None, alias="async")

View File

@ -6,7 +6,9 @@
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
@ -21,10 +23,8 @@ from typing import Optional
from pydantic import BaseModel, StrictInt, StrictStr
class Tag(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
Tag
"""
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None

Some files were not shown because too many files have changed in this diff Show More