This repository was archived by the owner on Dec 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
samples/client/3_1_0_json_schema/python/src/json_schema_api/components/schema
src/main/resources/python/components/schemas/schema_cls Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments