From 95174d4619cf8d86fc0c29cc33bfe0ba6d981e0d Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Mon, 2 Sep 2024 17:40:34 +0200 Subject: [PATCH] Update route API doc with max domain number (#2516) --- management/server/http/api/openapi.yml | 6 +++--- management/server/http/api/types.gen.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/management/server/http/api/openapi.yml b/management/server/http/api/openapi.yml index 45887dc2e..d32ec6167 100644 --- a/management/server/http/api/openapi.yml +++ b/management/server/http/api/openapi.yml @@ -1064,12 +1064,12 @@ components: type: string example: 10.64.0.0/24 domains: - description: Domain list to be dynamically resolved. Conflicts with network + description: Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network type: array items: type: string minLength: 1 - maxLength: 255 + maxLength: 32 example: "example.com" metric: description: Route metric number. Lowest number has higher priority @@ -2759,4 +2759,4 @@ paths: '403': "$ref": "#/components/responses/forbidden" '500': - "$ref": "#/components/responses/internal_error" \ No newline at end of file + "$ref": "#/components/responses/internal_error" diff --git a/management/server/http/api/types.gen.go b/management/server/http/api/types.gen.go index 77a6c643d..a575ff54b 100644 --- a/management/server/http/api/types.gen.go +++ b/management/server/http/api/types.gen.go @@ -995,7 +995,7 @@ type Route struct { // Description Route description Description string `json:"description"` - // Domains Domain list to be dynamically resolved. Conflicts with network + // Domains Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network Domains *[]string `json:"domains,omitempty"` // Enabled Route status @@ -1037,7 +1037,7 @@ type RouteRequest struct { // Description Route description Description string `json:"description"` - // Domains Domain list to be dynamically resolved. Conflicts with network + // Domains Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network Domains *[]string `json:"domains,omitempty"` // Enabled Route status