PayU / openapi-validator-middleware

Input validation using Swagger (Open API) and ajv
Apache License 2.0
144 stars 50 forks source link

what is require('../../src/middleware') meant to reference? #169

Closed o-t-w closed 3 years ago

o-t-w commented 3 years ago

I am using Fastify. In the docs you have const inputValidation = require('../../src/middleware');

I don't understand what this is?

kobik commented 3 years ago

Thanks for pointing that out. This is a typo in the docs.

../../src/middleware should be openapi-validator-middleware.

We'll fix that.

o-t-w commented 3 years ago

Thanks for the quick reply. It's also not that clear to me what is meant by "Fastify support requires uri-js dependency". Does that mean I just need to npm install uri-js, or do I also need to import it? No import statement is included in the example code. It's not a dependency that I've used before.

kibertoad commented 3 years ago

@o-t-w Thanks, fixed that in the PR as well.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 3.2.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: