openapi-python-client 0.28.0__py3-none-any.whl → 0.28.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.
@@ -292,6 +292,11 @@ def _process_properties( # noqa: PLR0912, PLR0911
292
292
  unprocessed_props.extend(sub_prop.properties.items() if sub_prop.properties else [])
293
293
  required_set.update(sub_prop.required or [])
294
294
 
295
+ # Update properties that are marked as required in the schema
296
+ for prop_name in required_set:
297
+ if prop_name in properties and not properties[prop_name].required:
298
+ properties[prop_name] = evolve(properties[prop_name], required=True)
299
+
295
300
  for key, value in unprocessed_props:
296
301
  prop_required = key in required_set
297
302
  prop_or_error: Property | (PropertyError | None)
@@ -16,7 +16,7 @@ from ..types import UNSET, Unset
16
16
  {{ relative }}
17
17
  {% endfor %}
18
18
 
19
- {% for lazy_import in model.lazy_imports %}
19
+ {% for lazy_import in model.lazy_imports | sort %}
20
20
  {% if loop.first %}
21
21
  if TYPE_CHECKING:
22
22
  {% endif %}
@@ -173,7 +173,7 @@ return field_dict
173
173
 
174
174
  @classmethod
175
175
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
176
- {% for lazy_import in model.lazy_imports %}
176
+ {% for lazy_import in model.lazy_imports | sort %}
177
177
  {{ lazy_import }}
178
178
  {% endfor %}
179
179
  {% if (model.required_properties or model.optional_properties or model.additional_properties) %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openapi-python-client
3
- Version: 0.28.0
3
+ Version: 0.28.1
4
4
  Summary: Generate modern Python clients from OpenAPI
5
5
  Project-URL: repository, https://github.com/openapi-generators/openapi-python-client
6
6
  Author-email: Dylan Anthony <contact@dylananthony.com>
@@ -25,10 +25,10 @@ Requires-Dist: httpx<0.29.0,>=0.23.0
25
25
  Requires-Dist: jinja2<4.0.0,>=3.0.0
26
26
  Requires-Dist: pydantic<3.0.0,>=2.10
27
27
  Requires-Dist: python-dateutil<3.0.0,>=2.8.1
28
- Requires-Dist: ruamel-yaml<0.19.0,>=0.18.6
28
+ Requires-Dist: ruamel-yaml<0.20.0,>=0.18.6
29
29
  Requires-Dist: ruff>=0.2
30
30
  Requires-Dist: shellingham<2.0.0,>=1.3.2
31
- Requires-Dist: typer<0.21,>0.16
31
+ Requires-Dist: typer<0.22,>0.16
32
32
  Description-Content-Type: text/markdown
33
33
 
34
34
  ![Run Checks](https://github.com/openapi-generators/openapi-python-client/workflows/Run%20Checks/badge.svg)
@@ -22,7 +22,7 @@ openapi_python_client/parser/properties/int.py,sha256=O455r8xjI4e6KHjhoblHHNHZYi
22
22
  openapi_python_client/parser/properties/list_property.py,sha256=DpHzLANolx8yNqfrF7nLzWHVNlZDxgb8V2mTxggEvAk,5587
23
23
  openapi_python_client/parser/properties/literal_enum_property.py,sha256=Nm9_kXgs7OSU0_5ak3ngvokvLdaTWcuXB-gbpuMnKpc,7423
24
24
  openapi_python_client/parser/properties/merge_properties.py,sha256=RyqL50MlRoHMe2TtiXaqqqu9bsWkf68JSkBcLV12oJ8,9653
25
- openapi_python_client/parser/properties/model_property.py,sha256=bDcAoLXQHig2wRK7anNuLe3lARKLuh9Z3jg-AM7Mlb8,16697
25
+ openapi_python_client/parser/properties/model_property.py,sha256=MF0NCyFoR4oFMSwBEc1SE6YpZm8kevGL4pdbk6bjgmE,16955
26
26
  openapi_python_client/parser/properties/none.py,sha256=BPx6lDyEicMyiWnxcVIuKPZrm0zsoGGUDbrEXJdDizA,1754
27
27
  openapi_python_client/parser/properties/property.py,sha256=tUNaC-96EKSqpuqW_4NeEp9LG7_PMUeE0DOkIXU89M0,971
28
28
  openapi_python_client/parser/properties/protocol.py,sha256=i4Z8Dy-Yx8vucvKuRfJ97OZSZUtw3ErFXWAbnTEP6U8,6343
@@ -79,7 +79,7 @@ openapi_python_client/templates/errors.py.jinja,sha256=trp-p5qn1_JLRxGZhdHtICaNP
79
79
  openapi_python_client/templates/helpers.jinja,sha256=sgspXEG683IhJ0hdcnWx9M9S7-Wgrdev7YuAxf_rZ0k,339
80
80
  openapi_python_client/templates/int_enum.py.jinja,sha256=z4d2hVsdgmlxUB1fbVs4w8tJaq2SdmhLjs4mjbZ5GLw,224
81
81
  openapi_python_client/templates/literal_enum.py.jinja,sha256=KY2aadYZYFjIMAFXDX8ZsUCGmKiiPR36GmFSBqXWEk8,658
82
- openapi_python_client/templates/model.py.jinja,sha256=qZvEGLCFqTM4das4ACYF2-mT3oD-UwcUXjTgQuBrx3s,8398
82
+ openapi_python_client/templates/model.py.jinja,sha256=UERMiJTen-JxMKeucoykmstE03kmpn5CubHHu7oDsWQ,8412
83
83
  openapi_python_client/templates/models_init.py.jinja,sha256=T2Sj1uGxWlYb5Vc8G3cC65KMDk-mtnEH0g5Xp0xE1Ro,233
84
84
  openapi_python_client/templates/package_init.py.jinja,sha256=EMOU4q7ceaoKJItVKu52vrRTD-BzhrNBjB8VZHN5LgY,196
85
85
  openapi_python_client/templates/pyproject.toml.jinja,sha256=rBaFq0oqlGeW-NesqPeF_BGCnEEB4P2Qq95vIrGOFQQ,255
@@ -106,8 +106,8 @@ openapi_python_client/templates/property_templates/model_property.py.jinja,sha25
106
106
  openapi_python_client/templates/property_templates/property_macros.py.jinja,sha256=s0DqGOc8rbEKptUtH1tAht08wahN3xXpaGfyzVa3Kog,580
107
107
  openapi_python_client/templates/property_templates/union_property.py.jinja,sha256=LdIEhIQbX4z6fuJRFxaj_RV0GTGrPBnO6tXBOymQbak,4162
108
108
  openapi_python_client/templates/property_templates/uuid_property.py.jinja,sha256=U31Y1inocw3aGzCinaYWrFcUu-T4f8Miht7tIaf6QiY,1075
109
- openapi_python_client-0.28.0.dist-info/METADATA,sha256=Cdzq0wmjnTQxdTn_Db5ZGbGngroVmDAdzbL6YHaqfls,11687
110
- openapi_python_client-0.28.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
111
- openapi_python_client-0.28.0.dist-info/entry_points.txt,sha256=iRfSdN2foASZXr8GghkYa6KRXkDgO0EFfLut5IXoBTU,72
112
- openapi_python_client-0.28.0.dist-info/licenses/LICENSE,sha256=4dpxQYqY0DB3aTauRrqYRuu6BVNsPSJdYeUT3sH6pQY,1075
113
- openapi_python_client-0.28.0.dist-info/RECORD,,
109
+ openapi_python_client-0.28.1.dist-info/METADATA,sha256=qYs-8JIlmAKRTSOOnHFul5RGHg3q4XxfDt7d_2iqZx4,11687
110
+ openapi_python_client-0.28.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
111
+ openapi_python_client-0.28.1.dist-info/entry_points.txt,sha256=iRfSdN2foASZXr8GghkYa6KRXkDgO0EFfLut5IXoBTU,72
112
+ openapi_python_client-0.28.1.dist-info/licenses/LICENSE,sha256=4dpxQYqY0DB3aTauRrqYRuu6BVNsPSJdYeUT3sH6pQY,1075
113
+ openapi_python_client-0.28.1.dist-info/RECORD,,