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 Request] Allow filtering for access modifier #10252

Open
Falco20019 opened this issue Oct 9, 2024 · 0 comments
Open

[Feature Request] Allow filtering for access modifier #10252

Falco20019 opened this issue Oct 9, 2024 · 0 comments

Comments

@Falco20019
Copy link

Falco20019 commented Oct 9, 2024

Is your feature request related to a problem? Please describe.
I have includePrivateMembers enabled since I need private methods. But I need to hide private fields.

Describe the solution you'd like
Allow filtering in a filter config like this:

apiRules:
- exclude:
    uidRegex: .*
    accessModifier: private
    type: Field

Describe alternatives you've considered
Disabling includePrivateMembers is not possible since I need the methods. The only alternative I was able to come up with is creating an attribute and marking every single private field with it.

Another workaround that works in my case is applying the filter like this (but relying on the naming scheme):

apiRules:
- exclude:
    uidRegex: \._[^\.]*$
    type: Field
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

1 participant