openapi

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package openapi provides methods for using the OpenAPI schema for validation and defaulting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaults

func ApplyDefaults(opts options.JSONOptions, optSchema *apiextv1beta1.JSONSchemaProps) (options.JSONOptions, error)

ApplyDefaults adds defaults to options, using an OpenAPI schema.

func ValidateOptions

func ValidateOptions(opts options.JSONOptions, optSchema *apiextv1beta1.JSONSchemaProps) (*validate.Result, error)

ValidateOptions based on an OpenAPI schema. The returned result object contains helpers for manipulating the data and also getting feedback on errors, and so may be non-nil in the case of an error when the error is the result of openapi validation failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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