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

CCDM: generate undefined instead of null #6837

Merged

Conversation

qtdzz
Copy link
Contributor

@qtdzz qtdzz commented Nov 5, 2019

This PR is based on the explicit nullable PR. It adds the feature that @nullable and Optional will produce | undefined return type or optional (?) parameter and property.


This change is Reviewable

@project-bot project-bot bot added this to External Reviews in OLD Vaadin Flow ongoing work (Vaadin 10+) Nov 5, 2019
@caalador caalador removed this from External Reviews in OLD Vaadin Flow ongoing work (Vaadin 10+) Nov 5, 2019
@qtdzz qtdzz added the hilla Issues related to Hilla label Nov 5, 2019
@platosha platosha force-pushed the ap/ccdm/explicit-nullables branch 4 times, most recently from 08e622e to 74af0ff Compare November 5, 2019 14:31
@qtdzz qtdzz force-pushed the tn/ccdm/undefined-instead-of-null branch from 60b03f0 to 53d258f Compare November 6, 2019 08:40
@qtdzz qtdzz force-pushed the tn/ccdm/undefined-instead-of-null branch from 53d258f to 0a6499d Compare November 6, 2019 08:50
@qtdzz qtdzz force-pushed the tn/ccdm/undefined-instead-of-null branch from 4c282c0 to aad7f54 Compare November 6, 2019 13:24
@ujoni ujoni added the +1.0.0 label Nov 6, 2019
@platosha platosha marked this pull request as ready for review November 6, 2019 15:57
@platosha platosha changed the title --wip--- CCDM: generate undefined instead of null CCDM: generate undefined instead of null Nov 6, 2019
@platosha platosha merged commit 92237a6 into ap/ccdm/explicit-nullables Nov 6, 2019
qtdzz pushed a commit that referenced this pull request Nov 7, 2019
* Use require for request and schema but nullable for response

* generate optional parameter and return type

* Modify nullable type checker

* Add nullIfUndefined helper

* Add echo service

* Add IT for optional paramter

* Fix unit tests nullable

* Fix required schema

* Clean up

* Move nullForUndefined to connect client

* Remove null check getting value from TS

* Fix unit test in task generator

* Fix sonarqube issue

* Add nullable test
@qtdzz qtdzz deleted the tn/ccdm/undefined-instead-of-null branch November 12, 2019 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hilla Issues related to Hilla +1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants