JuliaData / StructTypes.jl

Abstract definitions and convenience methods for describing, processing, and constructing Julia objects
https://juliadata.github.io/StructTypes.jl/stable/
MIT License
80 stars 22 forks source link

Fix #92. Unapplied defaults should be checked in `applyfield!`. #99

Open sunoru opened 1 year ago

sunoru commented 1 year ago

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.