Oops
This commit is contained in:
@@ -19,16 +19,16 @@ import json
|
||||
|
||||
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel, StrictStr
|
||||
from pydantic import BaseModel, Field, StrictStr
|
||||
|
||||
class ClientDto(BaseModel):
|
||||
"""
|
||||
ClientDto
|
||||
"""
|
||||
name: Optional[StrictStr] = None
|
||||
company_name: Optional[StrictStr] = Field(None, alias="companyName")
|
||||
username: Optional[StrictStr] = None
|
||||
key: Optional[StrictStr] = None
|
||||
__properties = ["name", "username", "key"]
|
||||
__properties = ["companyName", "username", "key"]
|
||||
|
||||
class Config:
|
||||
"""Pydantic configuration"""
|
||||
@@ -66,7 +66,7 @@ class ClientDto(BaseModel):
|
||||
return ClientDto.parse_obj(obj)
|
||||
|
||||
_obj = ClientDto.parse_obj({
|
||||
"name": obj.get("name"),
|
||||
"company_name": obj.get("companyName"),
|
||||
"username": obj.get("username"),
|
||||
"key": obj.get("key")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user