goai_components.go 1018 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. // Components is specified by OpenAPI/Swagger standard version 3.0.
  8. type Components struct {
  9. Schemas Schemas `json:"schemas,omitempty"`
  10. Parameters ParametersMap `json:"parameters,omitempty"`
  11. Headers Headers `json:"headers,omitempty"`
  12. RequestBodies RequestBodies `json:"requestBodies,omitempty"`
  13. Responses Responses `json:"responses,omitempty"`
  14. SecuritySchemes SecuritySchemes `json:"securitySchemes,omitempty"`
  15. Examples Examples `json:"examples,omitempty"`
  16. Links Links `json:"links,omitempty"`
  17. Callbacks Callbacks `json:"callbacks,omitempty"`
  18. }
  19. type ParametersMap map[string]*ParameterRef
  20. type RequestBodies map[string]*RequestBodyRef