Effect CommunityEC
Effect Community2y ago
12 replies
Jonathan Clem

JSONSchema Null Type Definition Error: Use 'null' Instead of `#/defs/null`

Is there a reason that JSONSchema makes Schema.NullOr(Foo) use #/defs/null which is defined as type: { const null }? This is invalid JSON Schema, AFAIK. It should just be "null".
Was this page helpful?