MCPcopy
hub / github.com/unkeyed/unkey / Validator

Struct Validator

pkg/openapi/validation/validator.go:31–33  ·  view source on GitHub ↗

Validator validates HTTP requests against an OpenAPI specification.

Source from the content-addressed store, hash-verified

29
30// Validator validates HTTP requests against an OpenAPI specification.
31type Validator struct {
32 validator validator.Validator
33}
34
35// NewFromBytes creates a Validator from a raw OpenAPI spec.
36// Returns an error if the spec cannot be parsed or is itself invalid.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected