forked from loafle/openapi-generator-original
[python] update model_config from dict to ConfigDict (#17900)
* [python] rewrite dict as ConfigDict * [python] update sample * [python] undo unwanted changes * [python] update sample
This commit is contained in:
@@ -20,7 +20,7 @@ import json
|
||||
|
||||
|
||||
|
||||
from pydantic import BaseModel, StrictInt, StrictStr
|
||||
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
try:
|
||||
from typing import Self
|
||||
|
||||
@@ -20,7 +20,7 @@ import json
|
||||
|
||||
|
||||
|
||||
from pydantic import BaseModel, Field, StrictInt, field_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
from typing_extensions import Annotated
|
||||
try:
|
||||
|
||||
@@ -21,7 +21,7 @@ import json
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, field_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
try:
|
||||
from typing import Self
|
||||
|
||||
@@ -20,7 +20,7 @@ import json
|
||||
|
||||
|
||||
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
from openapi_server.models.category import Category
|
||||
from openapi_server.models.tag import Tag
|
||||
|
||||
@@ -20,7 +20,7 @@ import json
|
||||
|
||||
|
||||
|
||||
from pydantic import BaseModel, StrictInt, StrictStr
|
||||
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
try:
|
||||
from typing import Self
|
||||
|
||||
@@ -20,7 +20,7 @@ import json
|
||||
|
||||
|
||||
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
||||
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
||||
from typing import Any, ClassVar, Dict, List, Optional
|
||||
try:
|
||||
from typing import Self
|
||||
|
||||
Reference in New Issue
Block a user