-
Notifications
You must be signed in to change notification settings - Fork 18
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
Ability to set enums in config #62
Comments
@SHaaD94 / @johanneshiry : fyi, i've done some progress on this, but will have to postpone completion for a little while (the java generation seems pretty complete, but not yet the scala one, at least for enum references at the root of the given config). I realize that enhancements like this and #64 are not as "straightforward" as one would like them to be given that the code has become rather complex; I myself have to spend some time catching up with the structure of things, etc. (I wish I had more time to proceed with a general revision.) Thanks again for your suggestions and contributions, really appreciated. |
Implemented in 0.9.983 - https://github.com/carueda/tscfg#enum |
It would be cool to have an ability to set a field which might have only limited set of values for example, let's say fruitType can be only apple, banana or pineapple.
In the config it could look like this:
After it, sealed trait with three classes could be generated:
The text was updated successfully, but these errors were encountered: