mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 11:18:02 +08:00
19 lines
808 B
Go
19 lines
808 B
Go
package goai
|
|
|
|
// Server is specified by OpenAPI/Swagger standard version 3.0.
|
|
type Server struct {
|
|
URL string `json:"url" yaml:"url"`
|
|
Description string `json:"description,omitempty" yaml:"description,omitempty"`
|
|
Variables map[string]*ServerVariable `json:"variables,omitempty" yaml:"variables,omitempty"`
|
|
}
|
|
|
|
// ServerVariable is specified by OpenAPI/Swagger standard version 3.0.
|
|
type ServerVariable struct {
|
|
Enum []string `json:"enum,omitempty" yaml:"enum,omitempty"`
|
|
Default string `json:"default,omitempty" yaml:"default,omitempty"`
|
|
Description string `json:"description,omitempty" yaml:"description,omitempty"`
|
|
}
|
|
|
|
// Servers is specified by OpenAPI/Swagger standard version 3.0.
|
|
type Servers []Server
|