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

Feature: RequiredParameterForAnnotationCheck with "one of these annotations" #754

Open
palfrey opened this issue Jun 20, 2019 · 1 comment

Comments

@palfrey
Copy link

palfrey commented Jun 20, 2019

RequiredParameterForAnnotationCheck requires you to have all of the named parameters in the check. I'd like the case where I specify a set of properties and the annotation must have at least one of them set.

Use case: Swagger Content annotation that has either schema or array set. Both can't be set at the same time, but I want to enforce one of them having been set.

@romani
Copy link
Member

romani commented Jun 22, 2019

please follow https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/.github/ISSUE_TEMPLATE.md

to show all details, whole config, exact file .....

Please imagine that your imaginary update is done, provide expectations on how config should looks like and how it should behave (in examples of code + config; NO general words).

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

No branches or pull requests

2 participants