chore: update swagger add h2c scheme type

This commit is contained in:
yusing
2026-01-01 18:56:11 +08:00
parent d3358ebd89
commit 2690bf548d
3 changed files with 5 additions and 1 deletions

View File

@@ -4357,6 +4357,7 @@
"enum": [
"http",
"https",
"h2c",
"tcp",
"udp",
"fileserver"
@@ -5494,6 +5495,7 @@
"enum": [
"http",
"https",
"h2c",
"tcp",
"udp",
"fileserver"

View File

@@ -963,6 +963,7 @@ definitions:
enum:
- http
- https
- h2c
- tcp
- udp
- fileserver
@@ -1578,6 +1579,7 @@ definitions:
enum:
- http
- https
- h2c
- tcp
- udp
- fileserver

View File

@@ -43,7 +43,7 @@ type (
_ utils.NoCopy
Alias string `json:"alias"`
Scheme route.Scheme `json:"scheme,omitempty" swaggertype:"string" enums:"http,https,tcp,udp,fileserver"`
Scheme route.Scheme `json:"scheme,omitempty" swaggertype:"string" enums:"http,https,h2c,tcp,udp,fileserver"`
Host string `json:"host,omitempty"`
Port route.Port `json:"port"`