Given an OpenAPI definition, I would like to validate a request (query params, path params, etc.) using @cfworker/json-schema
.
I've developed a way to do it, but it requires me to use the validate
function instead of new Validator
.
A simple OpenAPI definition might look like this:
{
"openapi": "3.1.0",
"components": {