Forum Discussion

cypher's avatar
Occasional Visitor
11 months ago

How does validation work? Path or method first?

Hi, Everyone!


We're currently using Swagger 2.0 as our YAML configuration file.

Let's say, I have these two paths:

Path A



Path B:



As a tester, I want to verify my gateway returns correct error messages on Path B:

I want to produce - 404 Error Not Found



I'm receiving 405 instead of 404, possibly because it falls under Path A, and treats 'addNewClientzzz' as {client-id} (path parameter).


Just wondering if this is an expected behavior? Does it check first the path, and not the method?