postman2openapi icon indicating copy to clipboard operation
postman2openapi copied to clipboard

[tests]: equivalent path templates are created

Open MikeRalphson opened this issue 3 years ago • 2 comments

Not an easy one to solve. Shows up in the fastly fixture where pathItem keys end either {name} or {old_name}. If you replace each path template section with {0}, {1}, {2} etc and compare the resultant keys, duplicates are found.

A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical

Some tools (cough) append a dummy fragment id to disambiguate equivalent pathItem keys.

MikeRalphson avatar Aug 21 '20 05:08 MikeRalphson