Skip to content

Commit

Permalink
fix parsing of Dates (and potentially other structtypes)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed May 22, 2024
1 parent 731294a commit fcbd68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stipple/parsers.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wrapper around Base.parse to prevent type piracy
function stipple_parse(::Type{T}, value) where T
if isstructtype(T)
if isstructtype(T) && value isa Dict
ff = [String(f) for f in fieldnames(T)]
kk = String.(keys(value))
# if all fieldnames are present, generate the type directly from the fields
Expand Down

0 comments on commit fcbd68d

Please sign in to comment.