generated from coulomb/repo-seed
Implement canonical schema foundation
This commit is contained in:
20
schemas/audit_event.schema.json
Normal file
20
schemas/audit_event.schema.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://flex-auth.netkingdom/schemas/audit_event.schema.json",
|
||||
"title": "AuditEvent",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "type", "subject"],
|
||||
"properties": {
|
||||
"id": {"type": "string", "minLength": 1},
|
||||
"type": {"type": "string", "minLength": 1},
|
||||
"decision_id": {"type": "string", "minLength": 1},
|
||||
"subject": {"$ref": "https://flex-auth.netkingdom/schemas/check_request.schema.json#/$defs/subject_ref"},
|
||||
"resource": {"$ref": "https://flex-auth.netkingdom/schemas/check_request.schema.json#/$defs/resource_ref"},
|
||||
"action": {"type": "string", "minLength": 1},
|
||||
"effect": {"enum": ["allow", "deny", "redact", "audit_only", "not_applicable"]},
|
||||
"timestamp": {"type": "string", "minLength": 1},
|
||||
"exposure_event": {"$ref": "https://flex-auth.netkingdom/schemas/caring_access_descriptor.schema.json#/$defs/exposure_event"},
|
||||
"metadata": {"type": "object", "additionalProperties": true}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user