Files
flex-auth/schemas/policy_fixture.schema.json
tegwick 7fdf6d63d5
Some checks failed
CI / Build and Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
Implement canonical schema foundation
2026-05-17 04:59:18 +02:00

34 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://flex-auth.netkingdom/schemas/policy_fixture.schema.json",
"title": "PolicyFixture",
"type": "object",
"additionalProperties": false,
"required": ["id", "request", "expect"],
"properties": {
"id": {"type": "string", "minLength": 1},
"request": {"$ref": "https://flex-auth.netkingdom/schemas/check_request.schema.json"},
"expect": {"$ref": "#/$defs/decision_expectation"},
"metadata": {"type": "object", "additionalProperties": true}
},
"$defs": {
"decision_expectation": {
"type": "object",
"additionalProperties": false,
"required": ["effect"],
"properties": {
"effect": {"enum": ["allow", "deny", "redact", "audit_only", "not_applicable"]},
"reason": {"type": "string", "minLength": 1},
"obligations": {
"type": "array",
"items": {"$ref": "https://flex-auth.netkingdom/schemas/decision_envelope.schema.json#/$defs/obligation"}
},
"conformance_findings": {
"type": "array",
"items": {"$ref": "https://flex-auth.netkingdom/schemas/caring_access_descriptor.schema.json#/$defs/conformance_finding"}
}
}
}
}
}