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

Clean up API urls by eliminating basepath from the wrong location. #1003

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MikeNeilson
Copy link
Contributor

@MikeNeilson MikeNeilson commented Dec 30, 2024

Will be handling camel case of "TimeSeries" next as I believe the OpenAPI corrections should be one PR; will squash them to two different commits though before merge.

Solution was quite simple, don't mix up OpenAPI 2.x and OpenAPI 3.x configuration. After reading https://swagger.io/docs/specification/v3_0/api-host-and-base-path/ I realized we've just been doing it wrong because we were keeping old information around; that wasn't even being used anymore.

Partial fix of #818

@MikeNeilson MikeNeilson requested a review from krowvin December 30, 2024 22:16
@MikeNeilson
Copy link
Contributor Author

Actually the camel case thing might take a bit more. The provided plugin requires all paths to be lower case, which defeats our purpose of making sure downstream functions and such end up camel case for client generators.

@MikeNeilson MikeNeilson marked this pull request as ready for review December 30, 2024 22:27
@MikeNeilson MikeNeilson requested a review from jbkolze December 30, 2024 22:27
@MikeNeilson
Copy link
Contributor Author

well, the latest version of Javalin has a simple "caseInsenstiveRoutes" options, but requires java 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant