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

fix: #921 wrong typegen for nullable values w/ default #965

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

tgriesser
Copy link
Member

fix: #921

Incorrect logic in the type printer, if the input field has a default value it should not be required

@tgriesser tgriesser merged commit 03b5ffd into main Aug 4, 2021
@tgriesser tgriesser deleted the tgriesser/fix/optional-input branch August 4, 2021 14:59
tgriesser added a commit that referenced this pull request Aug 4, 2021
tgriesser added a commit that referenced this pull request Aug 17, 2021
tgriesser added a commit that referenced this pull request Sep 2, 2021
* main:
  feat: ability to rename root types (#976)
  docs: Remove `.ts` extension from import statement (#974)
  fix: revert declareInputs default to false (#975)
  fix: printer imports, follow up from #967 (#970)
  fix: plugin inputFieldDefTypes (#919)
  fix: add globalHeaders to imports for global def file (#969)
  fix: correct imports for changes in #967 (#968)
  feat: ConfiguredTypegen for splitting global types & configuring input type emission (#967)
  Revert "fix: #921 wrong typegen for nullable values w/ default (#965)" (#966)
  fix: #921 wrong typegen for nullable values w/ default (#965)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong type generated by nullable() + default value
1 participant