StructTypes.jl
StructTypes.jl copied to clipboard
Fix #92. Unapplied defaults should be checked in `applyfield!`.
I met a problem when trying to deserialize something with JSON3.jl with a default value that isn't in the type fields, and found these lines were defined under the wrong function. It fixes #92 because x is only defined in applyfield! but not in applyfield.