-
Notifications
You must be signed in to change notification settings - Fork 324
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
Can not generate default value for using enum in class #336
Comments
I am having this same issue. Any updated @Saul-Mirone |
having same issue default values are not being reflected in json-schema. |
Facing the same issue. Any updates or workaround for this? |
In addition to enums the handling of default values is broken for constants too. class Test {
num = 10;
} This does not: const DEFAULT_NUM = 10;
class Test {
num = DEFAULT_NUM;
} |
…#336) * add helper functions getDeclarationValue() and getInitializerValue() * make user symbols available to sandbox evaluation * simplify initializer logic (eliminate ifs)
The PR #600 implements support for referencing enums and constants as default values, would be great if I could get some feedback on it. |
Then I get:
I expect the default can be set in here.
The text was updated successfully, but these errors were encountered: