MCPcopy
hub / github.com/danielgtaylor/huma / ValidateResult

Struct ValidateResult

validate.go:175–177  ·  view source on GitHub ↗

ValidateResult tracks validation errors. It is safe to use for multiple validations as long as `Reset()` is called between uses.

Source from the content-addressed store, hash-verified

173// ValidateResult tracks validation errors. It is safe to use for multiple
174// validations as long as `Reset()` is called between uses.
175type ValidateResult struct {
176 Errors []error
177}
178
179// Add an error to the validation result at the given path and with the
180// given value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected