17 lines
410 B
Python
17 lines
410 B
Python
import json
|
|
from pathlib import Path
|
|
|
|
from jsonschema import validate
|
|
|
|
|
|
def test_action_directive_schema_accepts_minimal_directive():
|
|
schema = json.loads(Path("duck_core/schemas/action_directive.schema.json").read_text())
|
|
directive = {
|
|
"kind": "action_directive",
|
|
"intent": "No action needed",
|
|
"risk_level": "none",
|
|
"actions": [],
|
|
}
|
|
|
|
validate(directive, schema)
|