krakenjs / hapi-openapi

Build design-driven apis with OpenAPI (formerly swagger) 2.0 and hapi.
Other
211 stars 75 forks source link

Fixes #151 #152

Closed jdarling closed 5 years ago

jdarling commented 5 years ago

If you have a multi-segment path defined (/api/v1/proxy/{path}) it breaks when it creates the validator due to it creating the param name as "path" instead of "path". As multi-segment parameters can also have a repeat variable (path*2 as example) replacing the path variable name needs to take this into account.

tlivings commented 5 years ago

Can you add a test? Thanks.

jdarling commented 5 years ago

Added a test to test-validators.js don't know if that is where you want it or not. Also didn't know if I should bump version number or whatever. Just lmk