From 0c4c0d8ce88f72f36d4e7a7767c45d41f8a6b19c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 25 Feb 2026 13:00:04 +0000 Subject: [PATCH] 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 --- .../compute/schemas/instance_usage_audit_log.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nova/api/openstack/compute/schemas/instance_usage_audit_log.py b/nova/api/openstack/compute/schemas/instance_usage_audit_log.py index e15e35cc93..95b2026c57 100644 --- a/nova/api/openstack/compute/schemas/instance_usage_audit_log.py +++ b/nova/api/openstack/compute/schemas/instance_usage_audit_log.py @@ -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},