Install:
go get github.com/muir/nvalid
Nvalid is a wrapper around kin-openapi to make it easy for nvelope to validate requests and responses.
kin-openapi is a package that parses and manipulates OpenAPI2 and OpenAPI3 files. It can also validate requests and responses.
nvelope applies dependency injection to building HTTP endpoint handlers to reduce the boilerplate to almost nothing.
See the example in the documentation.