Closed davidvc closed 8 years ago
While this validates using Swagger's Validator Badge, I don't think this is actually a valid specification. Check out the discussion on https://github.com/apigee-127/sway/issues/32. The people commenting that the paths are the same/invalid are all affiliated with Swagger, and the discussion led to an issue to document that this is unsupported.
Ooh, I didn't know about Validator Badge.
Thanks for the thread, it does make sense. Looks like the workaround is to merge the two methods into one with two optional parameters, and we'll use the id if it's present otherwise we'll use the key.
On Tue, Dec 1, 2015 at 12:19 PM jeffreyc notifications@github.com wrote:
While this validates using Swagger's Validator Badge https://github.com/swagger-api/validator-badge, I don't think this is actually a valid specification. Check out the discussion on apigee-127/sway#32 https://github.com/apigee-127/sway/issues/32. The people commenting that the paths are the same/invalid are all affiliated with Swagger, and the discussion led to an issue to document that this is unsupported.
— Reply to this email directly or view it on GitHub https://github.com/civisanalytics/swagger-diff/issues/19#issuecomment-161068015 .
Closing the issue, it appears to be invalid from Swagger's perspective, even though swagger-core is emitting it without error.
I am getting this error after running swagger-diff against an unchanged resource
I believe it's because this resource has two GET methods each with a single parameter:
The swagger JSON looks like this: