Open LauraBeatris opened 5 months ago
When passing an invalid option, eg:
@derive {Jason.Encoder, invalid: [:__meta__]}
It returns the following error: cannot encode metadata from the :__meta__ field for CrosswordsApi.Users.User to JSON.
cannot encode metadata from the :__meta__ field for CrosswordsApi.Users.User to JSON.
Could the error be explicit that expect or only should be passed as valid options only?
expect
only
Yes, that makes sense. PRs welcome!
Current behavior
When passing an invalid option, eg:
It returns the following error:
cannot encode metadata from the :__meta__ field for CrosswordsApi.Users.User to JSON.
Expected behavior
Could the error be explicit that
expect
oronly
should be passed as valid options only?