components

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL