Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .generator/src/generator/templates/model_generic.j2
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class {{ name }}(ModelNormal):
{%- if model.nullable %}
_nullable = True
{%- endif %}
{%- if model.get("x-keep-typed-in-additional-properties") %}
# Cross-SDK semantic marker. In Python, typed fields are already accessible via
# bracket notation (model["key"]) through _data_store, so no runtime change is needed.
_keep_typed_in_additional_properties = True
{%- endif %}

{%- if model.properties %}
@cached_property
Expand Down
Loading