Skip to content

Commit

Permalink
impose schema structure on clickify_parameters input
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Apr 10, 2024
1 parent 6f26e28 commit 866e018
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scabha/schema_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def clickify_parameters(schemas: Union[str, Dict[str, Any]]):
if type(schemas) is str:
schemas = OmegaConf.merge(OmegaConf.structured(Schema),
OmegaConf.load(schemas))
else:
schemas = OmegaConf.merge(OmegaConf.structured(Schema),
dict(inputs=schemas.inputs, outputs=schemas.outputs))

decorator_chain = None
inputs = Cargo.flatten_schemas(OrderedDict(), schemas.inputs, "inputs")
Expand Down

0 comments on commit 866e018

Please sign in to comment.