fix: quote dotted aliases and offer root foreach in inventory

This commit is contained in:
lda
2026-09-05 00:35:00 +07:00 Verified
parent 3016fd263b
commit 6e6a4f943d
2 changed files with 79 additions and 1 deletions
+3 -1
View File
@@ -202,7 +202,9 @@ def context_path_options(
reason = raw_reason if isinstance(raw_reason, str) else None
option: AuthoringPathOptionPayload = {
"path": f"context.{name}",
# Field names are literal path segments: dotted foreach aliases
# must stay quoted as one segment, never split on ".".
"path": str(GraphSourcePath("context", (name,))),
"label": name.replace("_", " ").replace("-", " ").title(),
"origin": "runtime_context",
"schema": deepcopy(dict(schema)),