Closed robbiegleeson closed 3 years ago
@robbiegleeson requestValidationFn
and responseValidationFn
are only invoked when validation fails. Are you saying you don't see them invoked even when that happens?
If you also don't see validation being applied, it's most likely because there is no match between request path and endpoints defined in schema. Common reasons for that is absent or excessive '/' in the path and method mismatch. Try debugging inside validator and see if it resolved correct branch of schema or just skips validation due no unknown path.
@robbiegleeson Could you please provide an update on your situation?
@kibertoad Apologies - I have not had time to try debugging inside the validator yet - been mad busy at work. I'll get to it over the weekend and will let you know
@robbiegleeson Any updates?
@robbiegleeson Are you still observing this issue?
Closing due to low activity. Happy to reopen if there's a need
Hi guys,
Great work by the way. I am trying to use this on my simple Express.js app but cannot see anything in logs or any validation.
server.js
is setup as follows:My Validator is as follows:
Not seeing any of the console logs when I run through postman