Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultExternalSchema is the default JSON schema to load for validation.
DefaultExternalSchema = "/etc/cdi/schema/schema.json"
)
Variables ¶
This section is empty.
Functions ¶
func WithDefaultSchema ¶
WithDefaultSchema returns a CDI Spec validator that uses the default external JSON schema, or the default builtin one if the external one fails to load.
func WithNamedSchema ¶
WithNamedSchema loads the named JSON schema and returns a CDI Spec validator for it. If loading the schema fails a dummy validator is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.