-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Remove servers urls with trailing slash #7940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b90f812
94444eb
0c767a2
a0e0a03
d8d322a
1fb0199
6be24b2
69ff970
79f34dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: OpenAPI Petstore | ||
description: "sample spec" | ||
license: | ||
name: Apache-2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0.html | ||
version: 1.0.0 | ||
servers: | ||
- url: / | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per @jimschubert There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm when we keep this value as '/' rust tests fail because they assume that we keep stripping the / from the end of the server url. Probably better to keep removing it and have future PRs detect the "" use case if they need to. That way this is non-breaking. |
||
- url: http://trailingshlash.io:80/v1/ | ||
- url: http://notrailingslash.io:80/v2 | ||
tags: [] | ||
paths: {} | ||
components: | ||
schemas: {} | ||
securitySchemes: {} |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should pass in a boolean doNotModifyOnlySlash and when it is true, for "/" leave it as-is?
That we we could use it to preserve the current behavior here for rust jersey-2 etc.