From ef3c36530a1cae76f6cdebd1e60d08bfc69d0c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Nie=C3=9F?= Date: Sat, 10 Sep 2022 13:01:21 +0200 Subject: [PATCH] feat: Allow Create functions for available prefix/ip to be used --- .gitignore | 2 +- patchs/swagger-v3.2.9-available-ip.patch | 38 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 patchs/swagger-v3.2.9-available-ip.patch diff --git a/.gitignore b/.gitignore index 66fd13c9..839a56dc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +vendor/ diff --git a/patchs/swagger-v3.2.9-available-ip.patch b/patchs/swagger-v3.2.9-available-ip.patch new file mode 100644 index 00000000..9d383696 --- /dev/null +++ b/patchs/swagger-v3.2.9-available-ip.patch @@ -0,0 +1,38 @@ +--- swagger/swagger-v3.2.9.json 2022-09-09 22:09:29.521598905 +0200 ++++ swagger-v3.2.9.new.json 2022-09-09 22:09:29.933589719 +0200 +@@ -55963,7 +55963,10 @@ + "in" : "body", + "name" : "data", + "required" : true, +- "schema" : { "$ref" : "#/definitions/WritableAvailableIP" } ++ "schema" : { ++ "items" : { "$ref" : "#/definitions/WritableAvailableIP" }, ++ "type" : "array" ++ } + } ], + "responses" : { "201" : { + "description" : "", +@@ -56771,7 +56774,10 @@ + "in" : "body", + "name" : "data", + "required" : true, +- "schema" : { "$ref" : "#/definitions/WritableAvailableIP" } ++ "schema" : { ++ "items" : { "$ref" : "#/definitions/WritableAvailableIP" }, ++ "type" : "array" ++ } + } ], + "responses" : { "201" : { + "description" : "", +@@ -56811,7 +56817,10 @@ + "in" : "body", + "name" : "data", + "required" : true, +- "schema" : { "$ref" : "#/definitions/PrefixLength" } ++ "schema" : { ++ "items" : { "$ref" : "#/definitions/PrefixLength" }, ++ "type" : "array" ++ } + } ], + "responses" : { "201" : { + "description" : "",