Working list selection filter

This commit is contained in:
Lyncoln
2026-10-12 11:28:07 -04:00
parent feb8af703a
commit 609c8f1384
28 changed files with 305 additions and 12 deletions
Binary file not shown.
Binary file not shown.
+18
View File
@@ -0,0 +1,18 @@
def buildPath(path, outputs):
if isinstance(path, str):
return path
result = ""
for part in path:
if isinstance(part, dict):
value = outputs[part["output"]]
for key in part.get("keys", []):
value = value[key]
result += str(value)
else:
result += part
return result
+6 -1
View File
@@ -1,9 +1,12 @@
from .object import buildObject
from .path import buildPath
def buildRequest(definition, outputs):
path = buildPath(definition.path, outputs)
request = {
"method": definition.method,
"path": definition.path,
"path": path,
}
if hasattr(definition, "keys"):
@@ -25,4 +28,6 @@ def buildRequest(definition, outputs):
request["headers"] = headers
print(path)
return request, outputs