Skip to content

GroupedOpenApi: replace array parameter with vararg #295

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
Dec 24, 2019

Conversation

Aloren
Copy link

@Aloren Aloren commented Dec 24, 2019

This change is backward compatible, but allows more convenient usage of GroupedOpenApi api.
Instead of:

	String paths[] = {"/store/**", "/admin/**"};
	return GroupedOpenApi.builder()
                   .setGroup("stores")
                   .pathsToMatch(paths)
		  .build();

now you can use:

	return GroupedOpenApi.builder()
                   .setGroup("stores")
                   .pathsToMatch("/store/**", "/admin/**")
		  .build();

@springdoc
Copy link
Collaborator

Thank you @Aloren for your contribution!

@springdoc springdoc merged commit 966ea6a into springdoc:master Dec 24, 2019
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