This commit is contained in:
lda
2026-05-21 16:42:02 +07:00 Verified
parent dcf7a6baf9
commit 7eff7cda2a
6 changed files with 129 additions and 17 deletions
@@ -111,6 +111,28 @@ def test_node_use_serializes_canonical_binding_paths_as_structural_json():
}
def test_canonical_binding_json_schema_describes_nested_fields():
schema = NodeUse.model_json_schema()
defs = schema["$defs"]
input_path = defs["InputPathBinding"]
input_value = defs["InputValueBinding"]
output = defs["OutputBinding"]
assert "whole node input payload" in input_path["properties"]["target"][
"description"
]
assert "input, state, or context" in input_path["properties"]["path"][
"description"
]
assert "Literal JSON-compatible value" in input_value["properties"]["value"][
"description"
]
assert "whole node output payload" in output["properties"]["source"][
"description"
]
assert "Bare state is invalid" in output["properties"]["target"]["description"]
def test_node_use_rejects_mixed_old_and_new_binding_styles():
with pytest.raises(ValidationError):
NodeUse.model_validate(
+8
View File
@@ -389,6 +389,14 @@ def test_workflow_tools_have_human_metadata() -> None:
assert "saved workflow artifacts" in (list_artifacts.description or "")
assert run_deployment.title == "Run Workflow Deployment"
assert "deployment_id" in (run_deployment.description or "")
assert "trace_range" in run_deployment.inputSchema["properties"]
trace_range_schema = run_deployment.inputSchema["properties"][
"trace_range"
]
assert "Debug traces" in trace_range_schema.get("description", "")
assert "null" in [
option.get("type") for option in trace_range_schema["anyOf"]
]
asyncio.run(run_proxy())