How to validate incoming requests against openapi schema

627 views Asked by At

I'm trying to validate all incoming HTTP requests against an OpenAPI spec (written in yaml). Ideally something similar to the js package express-openapi-validator (link). I've been searching for 'openapi validator go' but not having much luck. Is there such a package? Just need something that would save me having to create individual structs in each endpoint definition. I'm using go-chi for routing if that changes anything.

0

There are 0 answers