fix volume.attachments schema

by accident list operation was not framed in the "object" container for
block-storage volume attachments.

Change-Id: I13960a65b4b23cadc10d9547bfdc38c6d6b8d826
This commit is contained in:
Artem Goncharov
2024-04-22 15:01:46 +02:00
parent 4d69a3d081
commit 0cfbfc1882

View File

@@ -84,13 +84,23 @@ ATTACHMENT_CONTAINER_SCHEMA: dict[str, Any] = {
} }
ATTACHMENTS_SCHEMA: dict[str, Any] = { ATTACHMENTS_SCHEMA: dict[str, Any] = {
"type": "array", "type": "object",
"items": copy.deepcopy(ATTACHMENT_SCHEMA), "properties": {
"attachments": {
"type": "array",
"items": copy.deepcopy(ATTACHMENT_SCHEMA),
}
},
} }
ATTACHMENTS_DETAIL_SCHEMA: dict[str, Any] = { ATTACHMENTS_DETAIL_SCHEMA: dict[str, Any] = {
"type": "array", "type": "object",
"items": copy.deepcopy(ATTACHMENT_DETAIL_SCHEMA), "properties": {
"attachments": {
"type": "array",
"items": copy.deepcopy(ATTACHMENT_DETAIL_SCHEMA),
}
},
} }