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 38f3174 commit 5849b2eCopy full SHA for 5849b2e
src/interface_def.jl
@@ -13,6 +13,14 @@ function JSON.Writer.CompositeTypeWrapper(t::Outbound)
13
JSON.Writer.CompositeTypeWrapper(t, Tuple(fns))
14
end
15
16
+function JSON.lower(a::Outbound)
17
+ if nfields(a) > 0
18
+ JSON.Writer.CompositeTypeWrapper(a)
19
+ else
20
+ nothing
21
+ end
22
+end
23
+
24
function field_allows_missing(field::Expr)
25
field.head == :(::) && field.args[2] isa Expr &&
26
field.args[2].head == :curly && field.args[2].args[1] == :Union &&
0 commit comments