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

Commit 8b97e75

Browse files
committed
Samples regen
1 parent a29e85f commit 8b97e75

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

samples/client/3_1_0_json_schema/python/src/json_schema_api/components/schema/any_type_if_then_else.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ class AnyTypeIfThenElse(
364364
"""
365365
# any type
366366
properties: Properties2 = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties2)) # type: ignore
367+
if_: typing.Type[_If] = dataclasses.field(default_factory=lambda: _If) # type: ignore
368+
then: typing.Type[Then] = dataclasses.field(default_factory=lambda: Then) # type: ignore
367369
type_to_output_cls: typing.Mapping[
368370
typing.Type,
369371
typing.Type

samples/client/3_1_0_json_schema/python/src/json_schema_api/components/schema/object_if_then_else.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ class ObjectIfThenElse(
364364
"""
365365
types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict})
366366
properties: Properties2 = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties2)) # type: ignore
367+
if_: typing.Type[_If] = dataclasses.field(default_factory=lambda: _If) # type: ignore
368+
then: typing.Type[Then] = dataclasses.field(default_factory=lambda: Then) # type: ignore
367369
type_to_output_cls: typing.Mapping[
368370
typing.Type,
369371
typing.Type
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{#with then}}
2-
if_: typing.Type[{{#if refInfo.refClass}}{{#if refInfo.refModule}}{{refInfo.refModule}}.{{/if}}{{refInfo.refClass}}{{else}}{{jsonPathPiece.camelCase}}{{/if}}] = dataclasses.field(default_factory=lambda: {{#if refInfo.refClass}}{{#if refInfo.refModule}}{{refInfo.refModule}}.{{/if}}{{refInfo.refClass}}{{else}}{{jsonPathPiece.camelCase}}{{/if}}) # type: ignore
2+
then: typing.Type[{{#if refInfo.refClass}}{{#if refInfo.refModule}}{{refInfo.refModule}}.{{/if}}{{refInfo.refClass}}{{else}}{{jsonPathPiece.camelCase}}{{/if}}] = dataclasses.field(default_factory=lambda: {{#if refInfo.refClass}}{{#if refInfo.refModule}}{{refInfo.refModule}}.{{/if}}{{refInfo.refClass}}{{else}}{{jsonPathPiece.camelCase}}{{/if}}) # type: ignore
33
{{/with}}

0 commit comments

Comments
 (0)