{"repo":"pb33f/libopenapi-validator","free":true,"listed":false,"github":"https://github.com/pb33f/libopenapi-validator","clone":"git clone https://github.com/pb33f/libopenapi-validator.git","description":"OpenAPI validation extension for libopenapi, validate http requests and responses as well as schemas","language":"Go","stars":146,"topics":["go","golang","http","openapi","openapi-spec","openapi-specification","openapi3","schema","validation","validator"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Enterprise grade OpenAPI validation tools for golang. A validation module for libopenapi. Document validation is explicitly covered for OpenAPI 3.0, 3.1, and 3.2. libopenapi-validator will validate the following elements against an OpenAPI 3+ specification - http.Request - Validates the request against the OpenAPI specification - http.Response - Validates the response against the OpenAPI specification - libopenapi.Document - Validates the OpenAPI document against the OpenAPI specification - base.Schema - Validates a schema against a JSON or YAML blob / unmarshalled object 👉👉 Check out the full documentation 👈👈 Runtime validation features The validator now includes a standalone OpenAPI router, authentication callbacks with route context and replayable bodies, immutable custom body codecs, opt-in request defaults, Parameter.content decoding, validation policy switches, and explicit OpenAPI 3.2 document validation. Existing behavior remains the default. Strict server matching, non-JSON codecs, request mutation, and new rejection policies are opt-in: Use router.NewRouter for routing without validation, WithBodyDecoder and WithBodyEncoder for proprietary formats, and WithAuthenticationFunc for application-owned security checks. See the complete validation guide for defaults, options, and examples. --- Installation Validate OpenAPI Document Install pre-commit hook To install the pre-commit hook, run the following command in your terminal: Options --regexengine 🔍 Example: Use a","default_branch":null,"files":null,"tree":[],"storefront":"/r/pb33f","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pb33f/libopenapi-validator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}