goai_server.go 891 B

123456789101112131415161718192021222324
  1. // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package goai
  7. // Server is specified by OpenAPI/Swagger standard version 3.0.
  8. type Server struct {
  9. URL string `json:"url"`
  10. Description string `json:"description,omitempty"`
  11. Variables map[string]*ServerVariable `json:"variables,omitempty"`
  12. }
  13. // ServerVariable is specified by OpenAPI/Swagger standard version 3.0.
  14. type ServerVariable struct {
  15. Enum []string `json:"enum,omitempty"`
  16. Default string `json:"default,omitempty"`
  17. Description string `json:"description,omitempty"`
  18. }
  19. // Servers is specified by OpenAPI/Swagger standard version 3.0.
  20. type Servers []Server