package
0.0.0-20250304201544-e5f78fe3ede9
Repository: https://github.com/kubernetes/kube-openapi.git
Documentation: pkg.go.dev

# Functions

AdditionalItemsNotAllowed an error for invalid additional items.
CompositeValidationError an error to wrap a bunch of other errors.
DuplicateItems error for when an array contains duplicates.
EnumFail error for when an enum validation fails.
ExceedsMaximum error for when maxinum validation fails.
ExceedsMaximumInt error for when maxinum validation fails.
ExceedsMaximumUint error for when maxinum validation fails.
ExceedsMinimum error for when maxinum validation fails.
ExceedsMinimumInt error for when maxinum validation fails.
ExceedsMinimumUint error for when maxinum validation fails.
FailedAllPatternProperties an error for when the property doesn't match a pattern.
FailedPattern error for when a string fails a regex pattern match the pattern that is returned is the ECMA syntax version of the pattern not the golang version.
InvalidCollectionFormat another flavor of invalid type error.
InvalidType creates an error for when the type is invalid.
InvalidTypeName an error for when the type is invalid.
MultipleOfMustBePositive error for when a multipleOf factor is negative.
New creates a new API error with a code and a message.
NotMultipleOf error for when multiple of validation fails.
PropertyNotAllowed an error for when the property doesn't match a pattern.
Required error for when a value is missing.
TooFewItems error for when an array contains too few items.
TooFewProperties an error for an object with too few properties.
TooLong error for when a string is too long.
TooManyItems error for when an array contains too many items.
TooManyProperties an error for an object with too many properties.
TooShort error for when a string is too short.

# Constants

CompositeErrorCode remains 422 for backwards-compatibility and to separate it from validation errors with cause.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
InvalidTypeCode is used for any subclass of invalid types.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.
All code responses can be used to differentiate errors for different handling by the consuming program.

# Structs

CompositeError is an error that groups several errors together.
Validation represents a failure of a precondition.

# Interfaces

Error represents a error interface all swagger framework errors implement.