fix: make draft input bind idempotent
This commit is contained in:
@@ -234,6 +234,9 @@ class WorkflowDraftAuthoringApi:
|
|||||||
target_schema = workspace.draft.get(schema_key, {})
|
target_schema = workspace.draft.get(schema_key, {})
|
||||||
if not isinstance(target_schema, dict):
|
if not isinstance(target_schema, dict):
|
||||||
raise ValueError(f"draft {schema_key} must be an object")
|
raise ValueError(f"draft {schema_key} must be an object")
|
||||||
|
if _schema_path_exists(target_schema, source_parts):
|
||||||
|
projected = target_schema
|
||||||
|
else:
|
||||||
projected = project_property_to_schema_path(
|
projected = project_property_to_schema_path(
|
||||||
target_schema=target_schema,
|
target_schema=target_schema,
|
||||||
source_schema=input_schema,
|
source_schema=input_schema,
|
||||||
|
|||||||
Reference in New Issue
Block a user