Skip to content

Add OpenApiBuilderCustomiser #451

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 4 commits into from
Mar 1, 2020

Conversation

ptahchiev
Copy link
Contributor

Add OpenApiBuilderCustomiser to allow users to customize the OpenApiBuilder.
In our case we have our own custom annotation FacadeRestResource (much similar to spring-data-rest RepositoryRestResource) and we need a way to allow the OpenApiBuilder to scan beans for our annotation.
With the proposed change we introduce a new interface called OpenApiBuilderCustomiser and thus we can create our own customizer to provide the additional Map of mappings.

Copy link
Collaborator

@bnasslahsen bnasslahsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ptahchiev,

Can you please add unit tests for your changes, so we can test the usage of OpenApiBuilderCustomiser ?

Thank you for your contribution.

@ptahchiev
Copy link
Contributor Author

Hi @bnasslahsen - I've added a test-case.

@ptahchiev
Copy link
Contributor Author

@bnasslahsen Is there anything else I need to improve on the PR? The longer it waits the more conflicts appear - i see now you added 92 test and now I have conflicts with my branch :(

@bnasslahsen bnasslahsen merged commit 2d16de0 into springdoc:master Mar 1, 2020
@bnasslahsen
Copy link
Collaborator

Hi @ptahchiev,

Your PR is merged with master and will be available on the next release: 1.2.33

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
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.

None yet

2 participants