Closed andrejflorjancic closed 3 years ago
Been sitting with this for a day now. Have a very similar problem /clients GET getting mixed up with /client/{client_id} GET.
@andrejflorjancic after debugging the code I found that the problem was actually my code and how I attached the apiDoc to the object that caused problems. module.exports.get.apiDoc = xxx; isn't the best way of doing this.
So this can be ignored. Even though this is actually more of a javascript problem, the documentation could be more clear on having the same method multiple times requires a different pattern. It may be possible to improve the code to avoid this also, but I'm not sure on that.
thx
Framework: express openapi: 6.0.0 swagger: 2.0
When using paths validation has problems on similar paths.
Example:
users/{id}.js:
articles/{id}.js:
Calling ../users/{id} will produce error should have required property 'store'.
Renaming path articles to xarticles and than calling ../xarticles/{id} will produce error should have required property 'country'.