{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Battle-Creek-LLC/secunit/schemas/capture-github-audit-log.schema.json",
"title": "CaptureGithubAuditLog",
"type": "object",
"required": ["capturer", "version", "captured_at", "args", "result"],
"additionalProperties": false,
"properties": {
"capturer": { "const": "github.audit-log" },
"version": { "type": "string" },
"captured_at": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
},
"args": {
"type": "object",
"required": ["org", "since"],
"properties": {
"org": { "type": "string" },
"since": { "type": "string" }
}
},
"result": {
"type": "object",
"required": ["since", "entries"],
"properties": {
"since": { "type": "string" },
"entries": { "type": "array", "items": { "type": "object" } }
}
}
}
}