simplify current local contract definitions
This commit is contained in:
@@ -390,7 +390,7 @@ v4_schema_paths = {
|
||||
name: ROOT / f"docs/contracts/{name}-v0.4-proposal.schema.json"
|
||||
for name in ("task-discovery", "task-control", "call-execute")
|
||||
}
|
||||
v4_registry = registry.with_resource(event_schema["$id"], Resource.from_contents(event_schema))
|
||||
v4_registry = registry
|
||||
v4_examples = {name: sorted(EXAMPLES.glob(f"{name}-*-v0.4.json")) for name in v4_schema_paths}
|
||||
v4_positive = v4_negative = 0
|
||||
for name, schema_path in v4_schema_paths.items():
|
||||
@@ -427,7 +427,6 @@ v4_artifacts = v4_manifest.get("artifacts", [])
|
||||
required_v4 = {
|
||||
*(p.relative_to(ROOT).as_posix() for p in v4_schema_paths.values()),
|
||||
*(p.relative_to(ROOT).as_posix() for examples in v4_examples.values() for p in examples),
|
||||
event_schema_path.relative_to(ROOT).as_posix(),
|
||||
"contracts/upstream/v1/mq.schema.json",
|
||||
}
|
||||
v4_paths = [entry.get("path") for entry in v4_artifacts if isinstance(entry, dict)]
|
||||
|
||||
Reference in New Issue
Block a user