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

Better rules for default value of DTOs' attributes #16

Open
Gabriel-Darbord opened this issue Jul 7, 2022 · 0 comments
Open

Better rules for default value of DTOs' attributes #16

Gabriel-Darbord opened this issue Jul 7, 2022 · 0 comments

Comments

@Gabriel-Darbord
Copy link
Collaborator

When exporting DTOs' attributes with a default value, we can try to transpile it.
Primitives were considered an easy case, however not all of them can be rewritten as-is. For example long litterals are suffixed by L in Java, however this notation doesn't exist in JavaScript. With this particular example we might consider using BigInts.
We refused to transpile instantiations, but we could make an exception when the instanciated class is the DTO itself. This can happen with user-defined enumerations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant