Skip to content
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

Remove leading slash if Swagger Spec are specifying a basePath #50

Merged
merged 2 commits into from
Jul 25, 2019

Conversation

cortinico
Copy link
Collaborator

When generating Retrofit interfaces, we need to remove the leading
slash from the generated path. Having a leading slash will force
the path to be absolute for the host and will make URLs like:
https://petstore.swagger.io/v2/
impossible to call.

Fixes #49

When generating Retrofit interfaces, we need to remove the leading
slash from the generated path. Having a leading slash will force
the path to be absolute for the host and will make URLs like:
https://petstore.swagger.io/v2/
impossible to call.

Fixes #49
@cortinico cortinico added the enhancement New feature or request label Jul 13, 2019
@cortinico cortinico added this to the 1.2.0 milestone Jul 13, 2019
@cortinico cortinico self-assigned this Jul 13, 2019
@cortinico cortinico mentioned this pull request Jul 13, 2019
@cortinico
Copy link
Collaborator Author

@macisamuele What do you think about this PR?

@macisamuele
Copy link
Collaborator

@cortinico I'll check this PR in the next days. I'm not entirely sure that the approach is fully compatible with the swagger specifications (I need to check more deeply the related issue)

@cortinico cortinico marked this pull request as ready for review July 25, 2019 09:48
@cortinico cortinico merged commit 08975a0 into master Jul 25, 2019
@cortinico cortinico deleted the fix-49-trailing-slash branch July 25, 2019 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoint URL is invalid
2 participants