Uh oh!
There was an error while loading. Please reload this page.
Handle Unset Enums when deserializing - #306
Conversation
Codecov Report
@@ Coverage Diff @@## main #306 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 47 47 Lines 1385 1385 =========================================
Hits 1385 1385 Continue to review full report at Codecov.
|
bowenwr
commented
Jan 19, 2021
CC @dbanty. Good chance we have this issue other places as well but |
emann
left a comment
There was a problem hiding this comment.
LGTM! Thanks as always @bowenwr 😄
Unrelated, but this makes me think that maybe we should look into hypothesis - I've never used it personally, but I think it would help us in covering edge cases like this that slip by unnoticed.
bowenwr
commented
Jan 20, 2021
Thanks for a speedy review @emann (didn't there used to be a guitar in there?)! I don't have personal experience with hypothesis, but agree that property-based testing might help us catch a lot more. |
emann
commented
Jan 20, 2021
bowenwr
commented
Jan 22, 2021
Thanks @emann! Anything blocking this from a merge? |
emann
commented
Jan 22, 2021
@bowenwr nope, sorry! I've enabled auto-merge, if you could add a changelog entry and pull in the latest changes from main that'd be swell and it should merge automatically |
bowenwr
commented
Jan 22, 2021
@emann Done, thank you! |
When an
EnumisUnsetduring deserialization, it causes an error by attempting to instantiate it fromUNSET.