Skip to content

Treatment of trailing forward slash on Server Object "url". #3512

Closed Answered by handrews
charjr asked this question in Q&A
Discussion options

You must be logged in to vote

The specification requires that the URL template be appended (bolded in the spec), so the result would be https://petstore.swagger.io//pets. Of course, a tool can then choose to normalize URLs in accordance with RFC 3986, but that's outside of the scope of the OpenAPI Specification. Many web servers are configured to normalize such URLs internally (e.g. https://github.com/OAI//OpenAPI-Specification/discussions/3512 brings up this discussion, but still shows the // between OAI and OpenAPI-Specification in the address bar for me).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@charjr
Comment options

Answer selected by handrews
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants