feat(v2): complete v2 reimplementation
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
"additionalProperties": false,
|
||||
"required": ["adapter", "captured_at", "evidence"],
|
||||
"properties": {
|
||||
"adapter": {"enum": ["local", "ssh", "postgresql", "mysql"]},
|
||||
"adapter": {"enum": ["local", "postgresql", "mysql"]},
|
||||
"captured_at": {"type": "string", "format": "date-time", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]+)?Z$"},
|
||||
"evidence": {"type": "object"}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["repository_id", "format_version", "digest_algorithm", "compression", "encryption", "created_at"],
|
||||
"allOf": [
|
||||
{
|
||||
"if": {"properties": {"encryption": {"properties": {"mode": {"const": "none"}}}}},
|
||||
"then": {"properties": {"encryption": {"properties": {"key_id": {"type": "null"}}}}},
|
||||
"else": {"properties": {"encryption": {"properties": {"key_id": {"type": "string", "format": "uuid", "minLength": 1}}}}}
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"repository_id": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user