nested state path

This commit is contained in:
lda
2026-05-17 15:44:41 +07:00 Verified
parent c6360d3892
commit 5476010f12
10 changed files with 161 additions and 26 deletions
+5 -1
View File
@@ -141,7 +141,11 @@ def pick_path(input: PickPathInput) -> ValueOutput:
def project_fields(input: ProjectFieldsInput) -> MappingOutput:
"""Return only the requested existing fields from a mapping."""
return MappingOutput(
mapping={field: input.mapping[field] for field in input.fields if field in input.mapping}
mapping={
field: input.mapping[field]
for field in input.fields
if field in input.mapping
}
)