Skip to content

Commit 1a1736b

Browse files
committed
[FIX] model_generic.mustache
import json
1 parent 370515e commit 1a1736b

383 files changed

Lines changed: 383 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/main/resources/python/model_generic.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22
import pprint
3+
import json
34
import re # noqa: F401
45

56
{{#vendorExtensions.x-py-other-imports}}

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, StrictStr

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from datetime import datetime

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validator

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import annotations
1717
import pprint
18+
import json
1819
import re # noqa: F401
1920

2021
from pydantic import BaseModel, ConfigDict, StrictStr

0 commit comments

Comments
 (0)