github.com/go-openapi/validate

validate

Package validate provides methods to validate a swagger specification, as well as tools to validate data against their schema.

76

Decision Signals

Health score 76/100, confidence 75/100.

Strong
Maintenance 83
Adoption 64
Security 92
Maturity 55
Developer DX 83
Confidence 75

Install

go get github.com/go-openapi/validate

Package Data

updated May 28, 2026
Latest versionv0.25.2
Imported by5.9K packages
Stars0
Forks0
Last activity2 months ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

166 symbols
SymbolKindSynopsis
EntityValidator Type type EntityValidator interface{ ... }
EntityValidator.Validate Method Validate func(data any) *Result
FieldKey Type type FieldKey struct{}
FieldKey.Field Method func (fk *FieldKey) Field() string
FieldKey.Object Method func (fk *FieldKey) Object() map[string]any
NewFieldKey Function func NewFieldKey(obj map[string]any, field string) FieldKey
HeaderValidator Type type HeaderValidator struct{ ... }
HeaderValidator.KnownFormats Field KnownFormats strfmt.Registry
HeaderValidator.Options Field Options *SchemaValidatorOptions
HeaderValidator.Validate Method func (p *HeaderValidator) Validate(data any) *Result
NewHeaderValidator Function func NewHeaderValidator(name string, header *spec.Header, formats strfmt.Registry, options ...Option) *HeaderValidator
ItemKey Type type ItemKey struct{}

Similar Packages

Go OpenAPI Libraries

#1 Goa

Package goa implements a Go framework for writing microservices that promotes best practice by providing a single source of truth from which server code, client code, and documentation is derived.

Go OpenAPI Libraries 6.1K stars 2.0K imported-by 100% confidence
95

#2 Huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1

Go OpenAPI Libraries 4.1K stars 0 imported-by 65% confidence
85

#3 swag

Package swag contains a bunch of helper functions for go-openapi and go-swagger projects.

Go OpenAPI Libraries 0 stars 16.2K imported-by 75% confidence
78

#4 go-redoc

Embedded OpenAPI/Swagger documentation ui for Go using [ReDoc](https://redocly.com/).

Go OpenAPI Libraries 94 stars 39 imported-by 65% confidence
71

#5 Fuego

Package fuego provides a set of tools to build HTTP servers in Go, that automatically generate OpenAPI 3.0 documentation and support for multiple web frameworks.

Go OpenAPI Libraries 0 stars 73 imported-by 80% confidence
67