-
Notifications
You must be signed in to change notification settings - Fork 221
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
Class access modifiers #4788
Comments
Thanks for raising this @NKnusperer In a scenario where the generated SDK project is being referenced from another project, would you need at least the |
Hello @andrueastman, |
This is an interesting suggestion. We already have the mechanics to convey accessibility with the access modifier enum, it's simply not implemented for class/enum/interface declarations where it's currently hard coded But adding this information to the DOM, using it to emit the right modifier, and setting the value from an optional CLI parameter should be trivial. Is this something you'd be willing to submit a pull request for provided with guidance? |
Thank you @baywet, I will definitely take a look at this 👍 |
I was looking for the exact same feature is there any estimate on if or when this might be available? |
Is your feature request related to a problem? Please describe the problem.
Currently, all classes generated by Kiota have the
public
access modifier, which means they are visible to all other projects that reference them. However, the generated SDK code may just be an implementation detail that should not be exposed, so it would be appropriate to have theinternal
access modifier instead.Client library/SDK language
Csharp
Describe the solution you'd like
A command line argument for
kiota generate
that controls the class access modifier, similar to what--class-name
already does.Additional context
No response
The text was updated successfully, but these errors were encountered: