Skip to content

Commit 5cb58e9

Browse files
restored auto generated code
1 parent a908d25 commit 5cb58e9

File tree

10 files changed

+17
-232
lines changed

10 files changed

+17
-232
lines changed

Pipfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 202 deletions
This file was deleted.

cheshire_cat_api/cat_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def run(self):
7474
header_name='access_token',
7575
header_value=self.settings.auth_key
7676
))
77+
time.sleep(2)
7778
self.is_started = True
7879

7980
def on_ws_open(self, ws):

cheshire_cat_api/models/body_upload_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BodyUploadUrl(BaseModel):
3232

3333
class Config:
3434
"""Pydantic configuration"""
35-
populate_by_name = True
35+
allow_population_by_field_name = True
3636
validate_assignment = True
3737

3838
def to_str(self) -> str:

cheshire_cat_api/models/http_validation_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class HTTPValidationError(BaseModel):
3131

3232
class Config:
3333
"""Pydantic configuration"""
34-
populate_by_name = True
34+
allow_population_by_field_name = True
3535
validate_assignment = True
3636

3737
def to_str(self) -> str:

cheshire_cat_api/models/location_inner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import re # noqa: F401
2020

2121
from typing import Optional
22-
from pydantic import BaseModel, Field, StrictInt, StrictStr, ValidationError, validator, field_validator
22+
from pydantic import BaseModel, Field, StrictInt, StrictStr, ValidationError, validator
2323
from typing import Union, Any, List, TYPE_CHECKING
2424
from pydantic import StrictStr, Field
2525

@@ -38,7 +38,7 @@ class LocationInner(BaseModel):
3838
actual_instance: Union[int, str]
3939
else:
4040
actual_instance: Any
41-
any_of_schemas: List[str] = Field(LOCATIONINNER_ANY_OF_SCHEMAS, Literal=True)
41+
any_of_schemas: List[str] = Field(LOCATIONINNER_ANY_OF_SCHEMAS, const=True)
4242

4343
class Config:
4444
validate_assignment = True
@@ -53,7 +53,7 @@ def __init__(self, *args, **kwargs):
5353
else:
5454
super().__init__(**kwargs)
5555

56-
@field_validator('actual_instance')
56+
@validator('actual_instance')
5757
def actual_instance_must_validate_anyof(cls, v):
5858
instance = LocationInner.construct()
5959
error_messages = []

cheshire_cat_api/models/setting_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SettingBody(BaseModel):
3333

3434
class Config:
3535
"""Pydantic configuration"""
36-
populate_by_name = True
36+
allow_population_by_field_name = True
3737
validate_assignment = True
3838

3939
def to_str(self) -> str:

cheshire_cat_api/models/validation_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ValidationError(BaseModel):
3333

3434
class Config:
3535
"""Pydantic configuration"""
36-
populate_by_name = True
36+
allow_population_by_field_name = True
3737
validate_assignment = True
3838

3939
def to_str(self) -> str:

cheshire_cat_api/models/value.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import re # noqa: F401
2020

2121
from typing import Any, Dict, List, Optional
22-
from pydantic import BaseModel, Field, StrictStr, ValidationError, conlist, validator, field_validator
22+
from pydantic import BaseModel, Field, StrictStr, ValidationError, conlist, validator
2323
from typing import Union, Any, List, TYPE_CHECKING
2424
from pydantic import StrictStr, Field
2525

@@ -38,7 +38,7 @@ class Value(BaseModel):
3838
actual_instance: Union[List[object], object]
3939
else:
4040
actual_instance: Any
41-
any_of_schemas: List[str] = Field(VALUE_ANY_OF_SCHEMAS, Literal=True)
41+
any_of_schemas: List[str] = Field(VALUE_ANY_OF_SCHEMAS, const=True)
4242

4343
class Config:
4444
validate_assignment = True
@@ -53,7 +53,7 @@ def __init__(self, *args, **kwargs):
5353
else:
5454
super().__init__(**kwargs)
5555

56-
@field_validator('actual_instance')
56+
@validator('actual_instance')
5757
def actual_instance_must_validate_anyof(cls, v):
5858
instance = Value.construct()
5959
error_messages = []

requirements.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
pydantic~=2.4.2
2-
urllib3~=2.0.7
3-
python-dateutil~=2.8.2
4-
websocket-client~=1.6.4
1+
python_dateutil >= 2.5.3
2+
setuptools >= 21.0.0
3+
urllib3 >= 1.25.3, < 2.1.0
4+
pydantic >= 1.10.5, < 2
5+
aenum >= 3.1.11
6+
websocket-client>=1.6.1

0 commit comments

Comments
 (0)