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
This commit is contained in:
Artem Goncharov
2024-08-21 18:42:06 +02:00
parent fb41208b55
commit df50f9d845

View File

@@ -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": {