Closed G4brym closed 8 months ago
🧪 A prerelease is available for testing 🧪
You can install this latest build in your project with:
npm install --save https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/6942714810/npm-package-itty-router-openapi-104
Or you can immediately run this with npx
:
npx https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/6942714810/npm-package-itty-router-openapi-104
Previous to this pr, if you defined as query parameter as string and required like this:
And sent a request with this query string
?my_field=
it would pass the required validation as it was parsed as an empty string, but now it will trigger the right error sayingExpected string, received null