fix: make draft input bind idempotent

This commit is contained in:
lda
2026-06-29 19:35:53 +07:00 Verified
parent 89c405ed27
commit ca299e6fa0
+3
View File
@@ -234,6 +234,9 @@ class WorkflowDraftAuthoringApi:
target_schema = workspace.draft.get(schema_key, {})
if not isinstance(target_schema, dict):
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(
target_schema=target_schema,
source_schema=input_schema,