github.com/gogf/gf/v2@v2.7.4/net/goai/goai_components.go (about)

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