pyopenapi-gen 0.12.0__py3-none-any.whl → 0.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyopenapi_gen/core/loader/parameters/parser.py +9 -0
- {pyopenapi_gen-0.12.0.dist-info → pyopenapi_gen-0.12.1.dist-info}/METADATA +1 -1
- {pyopenapi_gen-0.12.0.dist-info → pyopenapi_gen-0.12.1.dist-info}/RECORD +6 -6
- {pyopenapi_gen-0.12.0.dist-info → pyopenapi_gen-0.12.1.dist-info}/WHEEL +0 -0
- {pyopenapi_gen-0.12.0.dist-info → pyopenapi_gen-0.12.1.dist-info}/entry_points.txt +0 -0
- {pyopenapi_gen-0.12.0.dist-info → pyopenapi_gen-0.12.1.dist-info}/licenses/LICENSE +0 -0
@@ -135,7 +135,16 @@ def parse_parameter(
|
|
135
135
|
type="string",
|
136
136
|
enum=sch["items"]["enum"],
|
137
137
|
generation_name=enum_name, # Mark it as promoted
|
138
|
+
final_module_stem=NameSanitizer.sanitize_module_name(enum_name), # Set module stem for imports
|
138
139
|
)
|
140
|
+
|
141
|
+
# Register this inline enum schema so it gets generated as a model file
|
142
|
+
if isinstance(context, ParsingContext) and enum_name not in context.parsed_schemas:
|
143
|
+
context.parsed_schemas[enum_name] = items_schema
|
144
|
+
logger.debug(
|
145
|
+
f"Registered enum schema '{enum_name}' for array parameter '{param_name}' with values {sch['items']['enum'][:3]}..."
|
146
|
+
)
|
147
|
+
|
139
148
|
logger.debug(
|
140
149
|
f"Created enum schema '{enum_name}' for array parameter '{param_name}' with values {sch['items']['enum'][:3]}..."
|
141
150
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyopenapi-gen
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.1
|
4
4
|
Summary: Modern, async-first Python client generator for OpenAPI specifications with advanced cycle detection and unified type resolution
|
5
5
|
Project-URL: Homepage, https://github.com/your-org/pyopenapi-gen
|
6
6
|
Project-URL: Documentation, https://github.com/your-org/pyopenapi-gen/blob/main/README.md
|
@@ -28,7 +28,7 @@ pyopenapi_gen/core/loader/operations/parser.py,sha256=QHg3o8TRaReYofEEcBwuDuNxGD
|
|
28
28
|
pyopenapi_gen/core/loader/operations/post_processor.py,sha256=Rzb3GSiLyJk-0hTBZ6s6iWAj4KqE4Rfo3w-q2wm_R7w,2487
|
29
29
|
pyopenapi_gen/core/loader/operations/request_body.py,sha256=r-jscZEfOmqFA-E4i1Uj3S66rNEf1gDTlBiGUiA0P9k,3224
|
30
30
|
pyopenapi_gen/core/loader/parameters/__init__.py,sha256=p13oSibCRC5RCfsP6w7yD9MYs5TXcdI4WwPv7oGUYKk,284
|
31
|
-
pyopenapi_gen/core/loader/parameters/parser.py,sha256=
|
31
|
+
pyopenapi_gen/core/loader/parameters/parser.py,sha256=tMAAxcPnAQQtdVFP7-NY6XSfxvc2HkG5rPXd1wwyE8I,8049
|
32
32
|
pyopenapi_gen/core/loader/responses/__init__.py,sha256=6APWoH3IdNkgVmI0KsgZoZ6knDaG-S-pnUCa6gkzT8E,216
|
33
33
|
pyopenapi_gen/core/loader/responses/parser.py,sha256=F9otAn6ncQiY3C25Fq4mEJ5UFNgN83eujcX20Vd_nPU,4069
|
34
34
|
pyopenapi_gen/core/loader/schemas/__init__.py,sha256=rlhujYfw_IzWgzhVhYMJ3eIhE6C5Vi1Ylba-BHEVqOg,296
|
@@ -124,8 +124,8 @@ pyopenapi_gen/visit/model/alias_generator.py,sha256=TGL3AMq_PkBWFWeeXbNnA8hgO9hv
|
|
124
124
|
pyopenapi_gen/visit/model/dataclass_generator.py,sha256=nyTvBph6rtbJlCwTiDW_Y2UJmLLiA6D2QJUpA2xE0m8,10289
|
125
125
|
pyopenapi_gen/visit/model/enum_generator.py,sha256=AXqKUFuWUUjUF_6_HqBKY8vB5GYu35Pb2C2WPFrOw1k,10061
|
126
126
|
pyopenapi_gen/visit/model/model_visitor.py,sha256=4kAQSWsI4XumVYB3aAE7Ts_31hGfDlbytRalxyMFV3g,9510
|
127
|
-
pyopenapi_gen-0.12.
|
128
|
-
pyopenapi_gen-0.12.
|
129
|
-
pyopenapi_gen-0.12.
|
130
|
-
pyopenapi_gen-0.12.
|
131
|
-
pyopenapi_gen-0.12.
|
127
|
+
pyopenapi_gen-0.12.1.dist-info/METADATA,sha256=JuNfuruc2Nc7du_GdSrJh9MCXDvEcjP8bTNk5QyzuaU,14025
|
128
|
+
pyopenapi_gen-0.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
129
|
+
pyopenapi_gen-0.12.1.dist-info/entry_points.txt,sha256=gxSlNiwom50T3OEZnlocA6qRjGdV0bn6hN_Xr-Ub5wA,56
|
130
|
+
pyopenapi_gen-0.12.1.dist-info/licenses/LICENSE,sha256=UFAyTWKa4w10-QerlJaHJeep7G2gcwpf-JmvI2dS2Gc,1088
|
131
|
+
pyopenapi_gen-0.12.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|