We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c95ebb commit bc30b9eCopy full SHA for bc30b9e
1 file changed
src/json.jl
@@ -25,7 +25,9 @@ end
25
26
lower(o::T) where {T<:APIModel} = JSONWrapper(o)
27
function lower(o::T) where {T<:UnionAPIModel}
28
- if typeof(o.value) <: APIModel
+ if typeof(o.value) <: UnionAPIModel
29
+ return lower(o.value)
30
+ elseif typeof(o.value) <: APIModel
31
return JSONWrapper(o.value)
32
elseif typeof(o.value) <: Union{String,Real}
33
return o.value
0 commit comments