Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPIV3Key ¶
type OpenAPIV3Key string
const ( RequiredKey OpenAPIV3Key = "required" DefaultKey OpenAPIV3Key = "default" PropertiesKey OpenAPIV3Key = "properties" TypeKey OpenAPIV3Key = "type" AdditionalPropertiesKey OpenAPIV3Key = "additionalProperties" PreserveUnknownFieldKey OpenAPIV3Key = "x-kubernetes-preserve-unknown-fields" ItemsKey OpenAPIV3Key = "items" PatternKey OpenAPIV3Key = "pattern" MinLengthKey OpenAPIV3Key = "minLength" MaxLengthKey OpenAPIV3Key = "maxLength" MinimumKey OpenAPIV3Key = "minimum" MaximumKey OpenAPIV3Key = "maximum" )
type OpenAPIV3SchemaValidator ¶
type OpenAPIV3SchemaValidator struct {
Schema map[string]interface{}
}
func (*OpenAPIV3SchemaValidator) ValidateFormat ¶
func (validator *OpenAPIV3SchemaValidator) ValidateFormat(objectValues map[string]interface{}) (errs []error)
func (*OpenAPIV3SchemaValidator) ValidateRequiredFields ¶
func (validator *OpenAPIV3SchemaValidator) ValidateRequiredFields(objectValues map[string]interface{}) (errs []error)
type OpenAPIV3Types ¶
type OpenAPIV3Types string
const ( ObjectType OpenAPIV3Types = "object" NumberType OpenAPIV3Types = "number" IntegerType OpenAPIV3Types = "integer" BooleanType OpenAPIV3Types = "boolean" ArrayType OpenAPIV3Types = "array" StringType OpenAPIV3Types = "string" )
Click to show internal directories.
Click to hide internal directories.