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: Unmarshal should fail if required fields are missing #16

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

dylan-bourque
Copy link
Collaborator

  • updated codegen templates to emit checks that all required fields are assigned during unmarshal
  • added associated tests
  • regenerated all examples

Resolves #12

This PR also includes tweaks to the linter setup (see #2) so that we also lint the nested module in example/ and skip linting test files

update linter config to skip linting test code
update `lint` Make target to include the `example/` sub-module

Issue: #2
updated codegen templates to emit checks that all required fields are assigned during unmarshal
added associated tests
regenerated all examples

Issue: #12
Copy link
Contributor

@scarlson scarlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dylan-bourque dylan-bourque merged commit 7ae88ee into main Apr 13, 2022
@dylan-bourque dylan-bourque deleted the fix/fail-on-missing-required-fields branch April 13, 2022 20:30
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.

codegen: generated code does not return an error when unmarshaling data and required fields are not present
2 participants