-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improvements on DTO Typescript generator #2637
Conversation
Build # 552 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/552/ to view the results. |
@benoitf @ashumilova - if Anna is ok with this change, then lets merge and add into M5. |
- Add toJson() method on DTO - Add support of constructor with empty object (like new MyDTOImpl().withName("hello")) - Integration tests can be disabled with -DskipIntegrationTests flag Change-Id: I3bcc2de6bb549ef8e29a266270ebcf0735e696d1 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
8246ebb
to
55fbae1
Compare
Do you need docker to run compiler? |
@skabashnyuk I tried using nashorn or rhino but it was not working |
Can you clarify. Docker used only for tests of this DTO Typescript generator module only? |
@skabashnyuk |
Build # 599 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/599/ to view the results. |
Build # 605 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/605/ to view the results. |
Change-Id: I36cf731bcfe7cd35f3159424cab1d090a22277cf Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Change-Id: Ica589c63a8bc2c86117ee83d0acf6e646fbd25fb Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Build # 614 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/614/ to view the results. |
- Add integration tests that test the TypeScript generated DTOs - Add toJson() method on DTO - Add support of constructor with empty object (like new MyDTOImpl().withName("hello")) - Integration tests can be disabled with -DskipIntegrationTests flag Change-Id: I3bcc2de6bb549ef8e29a266270ebcf0735e696d1 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
What does this PR do?
What issues does this PR fix or reference?
add serialization/ export of DTOs to JSON format + lot of tests
New behavior
Allow to generate DTOs in TypeScript format for Serialization and Unserialization
PR type
Minor change checklist
Change-Id: I3bcc2de6bb549ef8e29a266270ebcf0735e696d1
Signed-off-by: Florent BENOIT fbenoit@codenvy.com