From 81956b192689ee123ce27b594e99c3124d05a3ea Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 29 Aug 2024 12:18:04 +0300 Subject: [PATCH] :memo: Update openapi spec Signed-off-by: ff137 --- open-api/openapi.json | 40 ++++++++++++++++++++++++---------------- open-api/swagger.json | 40 ++++++++++++++++++++++++---------------- 2 files changed, 48 insertions(+), 32 deletions(-) diff --git a/open-api/openapi.json b/open-api/openapi.json index 53de478cf3..3652abc261 100644 --- a/open-api/openapi.json +++ b/open-api/openapi.json @@ -2058,16 +2058,18 @@ "in" : "query", "name" : "count", "schema" : { - "pattern" : "^[1-9][0-9]*$", - "type" : "string" + "default" : 10, + "minimum" : 1, + "type" : "integer" } }, { "description" : "Start index", "in" : "query", "name" : "start", "schema" : { - "pattern" : "^[0-9]*$", - "type" : "string" + "default" : 0, + "minimum" : 0, + "type" : "integer" } }, { "description" : "(JSON) WQL query", @@ -2101,16 +2103,18 @@ "in" : "query", "name" : "count", "schema" : { - "pattern" : "^[1-9][0-9]*$", - "type" : "string" + "default" : 10, + "minimum" : 1, + "type" : "integer" } }, { "description" : "Start index", "in" : "query", "name" : "start", "schema" : { - "pattern" : "^[0-9]*$", - "type" : "string" + "default" : 0, + "minimum" : 0, + "type" : "integer" } }, { "description" : "(JSON) WQL query", @@ -4927,8 +4931,9 @@ "in" : "query", "name" : "count", "schema" : { - "pattern" : "^[1-9][0-9]*$", - "type" : "string" + "default" : 10, + "minimum" : 1, + "type" : "integer" } }, { "description" : "(JSON) object mapping referents to extra WQL queries", @@ -4950,8 +4955,9 @@ "in" : "query", "name" : "start", "schema" : { - "pattern" : "^[0-9]*$", - "type" : "string" + "default" : 0, + "minimum" : 0, + "type" : "integer" } } ], "responses" : { @@ -5345,8 +5351,9 @@ "in" : "query", "name" : "count", "schema" : { - "pattern" : "^[1-9][0-9]*$", - "type" : "string" + "default" : 10, + "minimum" : 1, + "type" : "integer" } }, { "description" : "(JSON) object mapping referents to extra WQL queries", @@ -5368,8 +5375,9 @@ "in" : "query", "name" : "start", "schema" : { - "pattern" : "^[0-9]*$", - "type" : "string" + "default" : 0, + "minimum" : 0, + "type" : "integer" } } ], "responses" : { diff --git a/open-api/swagger.json b/open-api/swagger.json index 08defb0862..f573151446 100644 --- a/open-api/swagger.json +++ b/open-api/swagger.json @@ -1720,15 +1720,17 @@ "in" : "query", "description" : "Maximum number to retrieve", "required" : false, - "type" : "string", - "pattern" : "^[1-9][0-9]*$" + "type" : "integer", + "default" : 10, + "minimum" : 1 }, { "name" : "start", "in" : "query", "description" : "Start index", "required" : false, - "type" : "string", - "pattern" : "^[0-9]*$" + "type" : "integer", + "default" : 0, + "minimum" : 0 }, { "name" : "wql", "in" : "query", @@ -1764,15 +1766,17 @@ "in" : "query", "description" : "Maximum number to retrieve", "required" : false, - "type" : "string", - "pattern" : "^[1-9][0-9]*$" + "type" : "integer", + "default" : 10, + "minimum" : 1 }, { "name" : "start", "in" : "query", "description" : "Start index", "required" : false, - "type" : "string", - "pattern" : "^[0-9]*$" + "type" : "integer", + "default" : 0, + "minimum" : 0 }, { "name" : "wql", "in" : "query", @@ -4052,8 +4056,9 @@ "in" : "query", "description" : "Maximum number to retrieve", "required" : false, - "type" : "string", - "pattern" : "^[1-9][0-9]*$" + "type" : "integer", + "default" : 10, + "minimum" : 1 }, { "name" : "extra_query", "in" : "query", @@ -4072,8 +4077,9 @@ "in" : "query", "description" : "Start index", "required" : false, - "type" : "string", - "pattern" : "^[0-9]*$" + "type" : "integer", + "default" : 0, + "minimum" : 0 } ], "responses" : { "200" : { @@ -4391,8 +4397,9 @@ "in" : "query", "description" : "Maximum number to retrieve", "required" : false, - "type" : "string", - "pattern" : "^[1-9][0-9]*$" + "type" : "integer", + "default" : 10, + "minimum" : 1 }, { "name" : "extra_query", "in" : "query", @@ -4411,8 +4418,9 @@ "in" : "query", "description" : "Start index", "required" : false, - "type" : "string", - "pattern" : "^[0-9]*$" + "type" : "integer", + "default" : 0, + "minimum" : 0 } ], "deprecated" : true, "responses" : {