package testing
import "k8s.io/apimachinery/pkg/util/strategicpatch/testing"
Index ¶
Functions ¶
func GetSchemaOrDie ¶
GetSchemaOrDie returns the openapi schema.
Types ¶
type Fake ¶
type Fake struct { Path string // contains filtered or unexported fields }
Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.
func (*Fake) OpenAPISchema ¶
func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema returns the openapi document and a potential error.
Source Files ¶
openapi.go
- Version
- v0.25.0-alpha.0
- Published
- Apr 6, 2022
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 3 hours ago –
Tools for package owners.