Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Detail string
Errors []ValidationError
}
Result holds the validation outcome when a request is invalid. A nil *Result means the request passed validation.
type ValidationError ¶
ValidationError represents a single field-level validation failure. Fix is non-nil when the validator can suggest a concrete correction.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates HTTP requests against an OpenAPI specification.
func NewFromBytes ¶
NewFromBytes creates a Validator from a raw OpenAPI spec. Returns an error if the spec cannot be parsed or is itself invalid.
Click to show internal directories.
Click to hide internal directories.