From df50f9d84501102ed8748afa94150b033e5b1d9f Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Wed, 21 Aug 2024 18:42:06 +0200 Subject: [PATCH] Fix QP name for listing volumes There is a typo in a parameter name `all_tenans` where `all_tenants` should be. Also set that limit can not be negative. Change-Id: I11c53ad33911a9b95c419f94c5e406a3b6347226 --- codegenerator/openapi/cinder_schemas/volume.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/codegenerator/openapi/cinder_schemas/volume.py b/codegenerator/openapi/cinder_schemas/volume.py index cfe71e2..cdf5db7 100644 --- a/codegenerator/openapi/cinder_schemas/volume.py +++ b/codegenerator/openapi/cinder_schemas/volume.py @@ -234,7 +234,7 @@ VOLUMES_DETAIL_SCHEMA: dict[str, Any] = { VOLUME_PARAMETERS: dict[str, Any] = { "all_tenants": { "in": "query", - "name": "all_tenans", + "name": "all_tenants", "schema": { "type": "boolean", }, @@ -268,9 +268,7 @@ VOLUME_PARAMETERS: dict[str, Any] = { "limit": { "in": "query", "name": "limit", - "schema": { - "type": "integer", - }, + "schema": {"type": "integer", "minimum": 1}, "description": "Requests a page size of items. Returns a number of items up to a limit value. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request.", }, "offset": {