api: Fix issue with instance usage audit log schema

We need another level of nesting [1].

[1] https://groups.google.com/g/json-schema/c/pK_Y1Gb5waM

Change-Id: I9828e287208a0dff8f909036df848f7539c534d4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2026-02-25 13:00:04 +00:00
parent ebb3175d9c
commit 0c4c0d8ce8
@@ -32,10 +32,14 @@ _instance_usage_audit_log_response = {
'log': {
'type': 'object',
'additionalProperties': {
'instances': {'type': 'integer', 'minimum': 0},
'errors': {'type': 'integer', 'minimum': 0},
'message': {'type': 'string'},
'state': {'type': 'string', 'enum': ['RUNNING', 'DONE']},
'type': 'object',
'properties': {
'instances': {'type': 'integer', 'minimum': 0},
'errors': {'type': 'integer', 'minimum': 0},
'message': {'type': 'string'},
'state': {'type': 'string', 'enum': ['RUNNING', 'DONE']},
},
'additionalProperties': False,
},
},
'num_hosts': {'type': 'integer', 'minimum': 0},