elm-community / json-extra

Convenience functions for working with Json.
http://package.elm-lang.org/packages/elm-community/json-extra/latest
MIT License
37 stars 16 forks source link

optionalField was not decoding at the fieldName #8

Closed gilbertkennen closed 7 years ago

gilbertkennen commented 7 years ago

If the field existed, optionalField would try to decode the entire object containing the field, not just the field's value.

zwilias commented 7 years ago

Thanks, @gilbertkennen!

I happened to do this together with a bunch of other changes.