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

Support RegEx in customAnnotationsMapping #793

Closed
kobylynskyi opened this issue Sep 4, 2021 Discussed in #783 · 0 comments
Closed

Support RegEx in customAnnotationsMapping #793

kobylynskyi opened this issue Sep 4, 2021 Discussed in #783 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kobylynskyi
Copy link
Owner

Discussed in #783

Originally posted by thisarattr August 27, 2021
Hi all,
I wanted to add custom annotation to all generated resolver methods, So that I can enforce authz on entry point to seperate data resources separately.

I achieved it using custom directive on schema which is added to all fields and use directiveAnnotationsMapping on gradle plugin config to generate it. But still ppl can choose to add it or they can forget/miss it, which leads to hv the resource without any authz check.
Thus im trying to add it to generation. Basically if I can add some config saying I want this method annotation on all recover interface methods, it will enforced.

Is there any way to me to achieve that?

Thanks in advance!

(last option im thinking is to hv some sort of linting to validate it and fail the build)

@kobylynskyi kobylynskyi self-assigned this Sep 4, 2021
@kobylynskyi kobylynskyi added the enhancement New feature or request label Sep 4, 2021
@kobylynskyi kobylynskyi added this to the 5.3.0 milestone Sep 4, 2021
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

No branches or pull requests

1 participant