fix: harden authoring schema and contract projections

This commit is contained in:
lda
2026-08-29 21:08:05 +07:00 Verified
parent 8b16c6403d
commit 0570ef8a78
14 changed files with 243 additions and 359 deletions
+3 -1
View File
@@ -275,7 +275,9 @@ def _append_schema_options(
"path": path,
"label": _label_for(name, child_fragment, resolved_child),
"origin": origin,
"schema": child_fragment,
# The UI may annotate an option schema; keep that mutation away from
# the canonical draft schema used to build the rest of the inventory.
"schema": deepcopy(dict(child_fragment)),
"required": name in required,
"availability": "available",
"uses": list(uses),