Update route API doc with max domain number (#2516)

This commit is contained in:
Maycon Santos 2024-09-02 17:40:34 +02:00 committed by GitHub
parent 92a0092ad5
commit 95174d4619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -1064,12 +1064,12 @@ components:
type: string type: string
example: 10.64.0.0/24 example: 10.64.0.0/24
domains: 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 type: array
items: items:
type: string type: string
minLength: 1 minLength: 1
maxLength: 255 maxLength: 32
example: "example.com" example: "example.com"
metric: metric:
description: Route metric number. Lowest number has higher priority description: Route metric number. Lowest number has higher priority

View File

@ -995,7 +995,7 @@ type Route struct {
// Description Route description // Description Route description
Description string `json:"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"` Domains *[]string `json:"domains,omitempty"`
// Enabled Route status // Enabled Route status
@ -1037,7 +1037,7 @@ type RouteRequest struct {
// Description Route description // Description Route description
Description string `json:"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"` Domains *[]string `json:"domains,omitempty"`
// Enabled Route status // Enabled Route status