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

Use custom ObjectMapper for /api #71

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Use custom ObjectMapper for /api #71

merged 1 commit into from
Oct 10, 2023

Conversation

jampukka
Copy link
Collaborator

@jampukka jampukka commented Oct 10, 2023

Linked issue #69

Use the ObjectMapper provided by io.swagger.core.v3.swagger-core module as suggested by the project.

Additionally change the way /api.html is generated. Current api.ftl template uses url: /api.json to fetch the actual api document with another request. So we can just return a dummy version of new OpenAPI() instead and the HTML version still works the same.

@jampukka jampukka merged commit 2d61683 into main Oct 10, 2023
2 checks passed
@jampukka jampukka deleted the fix/openapi branch October 10, 2023 19:31
@jampukka jampukka added this to the 1.2.0 milestone Oct 10, 2023
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