Closed triptesh1212 closed 2 months ago
Path segments can be empty, although some OpenAPI tools are pickier than others.
You could add a pattern
requiring at least one character, or be even more restrictive.
This seems to have been well answered by @ralfhandl so I'll close the issue - let us know if you need anything else though!
Hi, I have the following api speficiation.
(1) /api-endpoint gives the following error which is expected
GET Path '/api-endpoint' not found
(2) /api-endpoint/ does not give any error. Can anyone confirm if the empty string can be taken as path parameter ? (I have kept path parameter required as true. So, my expectation is if its empty then it should fail)