Open Kenblair1226 opened 3 years ago
could you please add new test and also check why ci is failing?
Still missing test :)
Still missing test :)
Need to study testing framework a little bit...
@kibertoad anything else is missing?
@Kenblair1226 Would that work correctly when addressing parametrized routes? Wouldn't this result in passing ids etc as a part of route as well?
Ya, the params will be treated as path and mostly be ignored since not matching any schema. Any suggestion?
@Kenblair1226 Something like this, I think: https://github.com/PayU/openapi-validator-middleware/pull/74
per https://github.com/PayU/openapi-validator-middleware/issues/81, borrow from @evelyne24's fix to use req.path if req.route does not exist.