mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 13:52:46 +00:00
fix unique items in python nextgen client (#14816)
This commit is contained in:
@@ -19,7 +19,7 @@ import json
|
||||
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel, StrictInt, StrictStr, validator
|
||||
from pydantic import BaseModel, StrictInt, StrictStr, conlist, validator
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
|
||||
class DefaultValue(BaseModel):
|
||||
@@ -28,13 +28,13 @@ class DefaultValue(BaseModel):
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
array_string_enum_ref_default: Optional[List[StringEnumRef]] = None
|
||||
array_string_enum_default: Optional[List[StrictStr]] = None
|
||||
array_string_default: Optional[List[StrictStr]] = None
|
||||
array_integer_default: Optional[List[StrictInt]] = None
|
||||
array_string: Optional[List[StrictStr]] = None
|
||||
array_string_nullable: Optional[List[StrictStr]] = None
|
||||
array_string_extension_nullable: Optional[List[StrictStr]] = None
|
||||
array_string_enum_ref_default: Optional[conlist(StringEnumRef)] = None
|
||||
array_string_enum_default: Optional[conlist(StrictStr)] = None
|
||||
array_string_default: Optional[conlist(StrictStr)] = None
|
||||
array_integer_default: Optional[conlist(StrictInt)] = None
|
||||
array_string: Optional[conlist(StrictStr)] = None
|
||||
array_string_nullable: Optional[conlist(StrictStr)] = None
|
||||
array_string_extension_nullable: Optional[conlist(StrictStr)] = None
|
||||
string_nullable: Optional[StrictStr] = None
|
||||
__properties = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"]
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import json
|
||||
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr, validator
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist, validator
|
||||
from openapi_client.models.category import Category
|
||||
from openapi_client.models.tag import Tag
|
||||
|
||||
@@ -32,8 +32,8 @@ class Pet(BaseModel):
|
||||
id: Optional[StrictInt] = None
|
||||
name: StrictStr = ...
|
||||
category: Optional[Category] = None
|
||||
photo_urls: List[StrictStr] = Field(..., alias="photoUrls")
|
||||
tags: Optional[List[Tag]] = None
|
||||
photo_urls: conlist(StrictStr) = Field(..., alias="photoUrls")
|
||||
tags: Optional[conlist(Tag)] = None
|
||||
status: Optional[StrictStr] = Field(None, description="pet status in the store")
|
||||
__properties = ["id", "name", "category", "photoUrls", "tags", "status"]
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import json
|
||||
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr, validator
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist, validator
|
||||
|
||||
class Query(BaseModel):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -28,7 +28,7 @@ class Query(BaseModel):
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
id: Optional[StrictInt] = Field(None, description="Query")
|
||||
outcomes: Optional[List[StrictStr]] = None
|
||||
outcomes: Optional[conlist(StrictStr)] = None
|
||||
__properties = ["id", "outcomes"]
|
||||
|
||||
@validator('outcomes')
|
||||
|
||||
@@ -19,7 +19,7 @@ import json
|
||||
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel, StrictStr
|
||||
from pydantic import BaseModel, StrictStr, conlist
|
||||
|
||||
class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -27,7 +27,7 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel):
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
values: Optional[List[StrictStr]] = None
|
||||
values: Optional[conlist(StrictStr)] = None
|
||||
__properties = ["values"]
|
||||
|
||||
class Config:
|
||||
|
||||
Reference in New Issue
Block a user