Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit d804d92

Browse files
committed
Removes another shared import
1 parent 4c8a30d commit d804d92

12 files changed

Lines changed: 45 additions & 16 deletions

File tree

modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ public void processOpts() {
706706

707707
// shared_imports
708708
supportingFiles.add(new SupportingFile("__init__.hbs", packagePath() + File.separator + "shared_imports", "__init__.py"));
709-
supportingFiles.add(new SupportingFile("shared_imports/header_imports.hbs", packagePath() + File.separator + "shared_imports", "header_imports.py"));
710709
supportingFiles.add(new SupportingFile("shared_imports/schema_imports.hbs", packagePath() + File.separator + "shared_imports", "schema_imports.py"));
711710
supportingFiles.add(new SupportingFile("shared_imports/security_scheme_imports.hbs", packagePath() + File.separator + "shared_imports", "security_scheme_imports.py"));
712711
supportingFiles.add(new SupportingFile("shared_imports/server_imports.hbs", packagePath() + File.separator + "shared_imports", "server_imports.py"));

modules/openapi-json-schema-generator/src/main/resources/python/components/headers/header.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
{{> _helper_imports }}
1111
{{jsonPathPiece.camelCase}} = {{refInfo.refModule}}.{{refInfo.refClass}}
1212
{{else}}
13-
from {{packageName}}.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
13+
import decimal
14+
import typing
15+
import typing_extensions
16+
17+
from {{packageName}} import api_client, schemas
1418
{{#if schema}}
1519

1620
{{#with schema}}

modules/openapi-json-schema-generator/src/main/resources/python/shared_imports/header_imports.hbs

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

samples/openapi3/client/petstore/python/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,6 @@ src/petstore_api/servers/server_0.py
13201320
src/petstore_api/servers/server_1.py
13211321
src/petstore_api/servers/server_2.py
13221322
src/petstore_api/shared_imports/__init__.py
1323-
src/petstore_api/shared_imports/header_imports.py
13241323
src/petstore_api/shared_imports/schema_imports.py
13251324
src/petstore_api/shared_imports/security_scheme_imports.py
13261325
src/petstore_api/shared_imports/server_imports.py

samples/openapi3/client/petstore/python/src/petstore_api/components/headers/header_int32_json_content_type_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812
from .content.application_json import schema as application_json_schema
913

1014

samples/openapi3/client/petstore/python/src/petstore_api/components/headers/header_number_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812

913
from . import schema
1014

samples/openapi3/client/petstore/python/src/petstore_api/components/headers/header_ref_content_schema_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812
from .content.application_json import schema as application_json_schema
913

1014

samples/openapi3/client/petstore/python/src/petstore_api/components/headers/header_ref_schema_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812

913
from . import schema
1014

samples/openapi3/client/petstore/python/src/petstore_api/components/headers/header_string_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812

913
from . import schema
1014

samples/openapi3/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/headers/header_some_header/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
55
"""
66

7-
from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary]
7+
import decimal
8+
import typing
9+
import typing_extensions
10+
11+
from petstore_api import api_client, schemas
812

913
from . import schema
1014

0 commit comments

Comments
 (0)