You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== RUN TestDecoder
=== RUN TestDecoder/should_test_nested_struct
=== RUN TestDecoder/should_fail_on_bars.0.baz
api_test.go:291:
Error Trace:
Error: An error is expected but got nil.
Test: TestDecoder/should_fail_on_bars.0.baz
Messages: bars.0.baz is empty
api_test.go:292:
Error Trace:
Error: Expected value not to be nil.
Test: TestDecoder/should_fail_on_bars.0.baz
=== RUN TestDecoder/should_fail_for_field
--- FAIL: TestDecoder (0.00s)
--- PASS: TestDecoder/should_test_nested_struct (0.00s)
--- FAIL: TestDecoder/should_fail_on_bars.0.baz (0.00s)
--- PASS: TestDecoder/should_fail_for_field (0.00s)
FAIL
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Really appreciate being given tests to add to the repo. I'm concerned that in fixing it, it might break existing user's implementations so the fix for this will probably have to be done in a major version
Is there an existing issue for this?
Current Behavior
The decoder doesn't fail if a required property of the nested struct is not populated.
Expected Behavior
The decoder should throw an error if a required field is missing in the nested struct.
Steps To Reproduce
Test
Result
Anything else?
No response
The text was updated successfully, but these errors were encountered: