openapi

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPIDefinitionsWithUnstructured added in v0.3.0

func GetOpenAPIDefinitionsWithUnstructured(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

GetOpenAPIDefinitionsWithUnstructured wraps the generated GetOpenAPIDefinitions and adds the Unstructured type definition which doesn't carry +k8s:openapi-gen markers.

IMPORTANT: This function does NOT transform keys. Keys remain in their original format (Go module paths like "go.miloapis.com/activity/...") because the OpenAPI builder uses reflection to get type names and looks them up in the definitions map.

For GVK extensions (required for SSA), the GetDefinitionName function must transform Go module paths to REST-friendly format before looking up in DefinitionNamer. This transformation is done in main.go's getDefinitionName wrapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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