Skip to content

Commit e032471

Browse files
docs: annotate _keep_typed_in_additional_properties as a cross-SDK semantic marker
In Python, typed fields are already reachable via bracket notation through _data_store, so no runtime behaviour change is required. The marker makes the flag visible for introspection and aligns semantics with other language SDKs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 029b9fb commit e032471

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.generator/src/generator/templates/model_generic.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class {{ name }}(ModelNormal):
7575
_nullable = True
7676
{%- endif %}
7777
{%- if model.get("x-keep-typed-in-additional-properties") %}
78+
# Cross-SDK semantic marker. In Python, typed fields are already accessible via
79+
# bracket notation (model["key"]) through _data_store, so no runtime change is needed.
7880
_keep_typed_in_additional_properties = True
7981
{%- endif %}
8082

0 commit comments

Comments
 (0)