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
PermissionKeys is generated but can not be used #5152
Comments
To add to this, this happens if there are nested PermissionKey classes with the attribute NestedPermissionKeys. namespace Proj.PermissionKeys
{
[NestedPermissionKeys]
public class OuterClass
{
[NestedPermissionKeys]
public class InnerClass
{
public const string Read = "OuterClass:InnerClass:Read";
public const string Modify = "OuterClass:InnerClass:Modify";
}
}
} is generated to namespace Proj.PermissionKeys {
export namespace OuterClass {
namespace InnerClass {
export const Read = "OuterClass:InnerClass:Read";
export const Modify = "OuterClass:InnerClass:Modify";
}
}
} The InnerClass should also get the export keyword: |
@osmanaslancan please also add a test for servertypingsgenerator |
Has this issue been fixed? On the current version NestedPermissionKeys are still not generated correctly. |
Yes, nested permission key classes should also have export |
on typescript code, can not call something like MyProject.PermissionKeys.Module.Abc
this is sample permission keys which is generated by seren
The text was updated successfully, but these errors were encountered: