Documentation
¶
Index ¶
- func ComponentTypeToCfgNames(cfg *config.FilterComponentsConfig, typ ComponentType) []string
- func ComponentTypeToComponentMap[T any](components *openapi3.Components, typ ComponentType) (compMap map[string]T)
- func ComponentTypeToDef(typ ComponentType) string
- func IsEmptyComponents(comps *openapi3.Components) bool
- func ProcessCopyComponent(docComps, filteredComps *openapi3.Components, typ ComponentType, name string) (ok bool)
- type ComponentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentTypeToCfgNames ¶
func ComponentTypeToCfgNames( cfg *config.FilterComponentsConfig, typ ComponentType, ) []string
func ComponentTypeToComponentMap ¶
func ComponentTypeToComponentMap[T any]( components *openapi3.Components, typ ComponentType, ) (compMap map[string]T)
func ComponentTypeToDef ¶
func ComponentTypeToDef(typ ComponentType) string
func IsEmptyComponents ¶
func IsEmptyComponents(comps *openapi3.Components) bool
func ProcessCopyComponent ¶
func ProcessCopyComponent( docComps, filteredComps *openapi3.Components, typ ComponentType, name string, ) (ok bool)
Types ¶
type ComponentType ¶
type ComponentType int
const ( ComponentTypeSchema ComponentType ComponentTypeParameter ComponentTypeHeader ComponentTypeRequestBody ComponentTypeResponse ContentTypeSecuritySchema ContentTypeExample ContentTypeLink ContentTypeCallback )
func ComponentDefToType ¶
func ComponentDefToType(def string) (typ ComponentType, ok bool)
func ComponentTypes ¶
func ComponentTypes() []ComponentType
Click to show internal directories.
Click to hide internal directories.