Skip to content

Fixes #418 by adjusting the output for Links. #427

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

Merged
merged 1 commit into from
Feb 14, 2020
Merged

Fixes #418 by adjusting the output for Links. #427

merged 1 commit into from
Feb 14, 2020

Conversation

fredrik-w
Copy link
Contributor

@fredrik-w fredrik-w commented Feb 14, 2020

There is a custom serializer for the Links object which creates a sorted map of all links. That map is then passed to jackson for serialization, thus some manual work is needed to fix the schema.

@fredrik-w
Copy link
Contributor Author

Is this the way to go, to attach directly to OpenAPI, or should we take some other route?

@fredrik-w
Copy link
Contributor Author

Reworked the implementation to use an OpenApiCustomiser instead, which feels more inline with the project.

There is a custom serializer for the Links object which creates a sorted map
of all links. That map is then passed to jackson for serialization, thus some
manual work is needed to fix the schema.
@bnasslahsen
Copy link
Collaborator

Thank you @fredrik-w for your contribution.

@bnasslahsen bnasslahsen merged commit 49a1a2e into springdoc:master Feb 14, 2020
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.

2 participants