Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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.