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

Update RpcStruct._validateType to not throw error for a null value #393

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

renonick87
Copy link
Contributor

Fixes #385

Risk

This PR makes no API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have verified that this PR passes lint validation
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Summary

Fixes the case where setting a Struct, Enum, or Array property of an RPC to null would throw an error. These properties can now be set to null, since the marshaller already ignores null/undefined properties.

CLA

@renonick87 renonick87 merged commit ec4bf9a into develop Mar 4, 2021
@crokita crokita deleted the bugfix/validate_type_null branch March 26, 2021 13:56
@crokita crokita mentioned this pull request Apr 14, 2021
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.

Can't set NULL for Enum properties in Structs and Messages
2 participants