© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
JSONSchema Null Type Definition Error: Use 'null' Instead of `#/defs/null` - Effect Community
EC
Effect Community
•
2y 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)
Schema.NullOr(Foo)
use
#/defs/null
#/defs/null
which is defined as
type: { const null }
type: { const null }
? This is invalid JSON Schema
, AFAIK
. It should just be
"null"
"null"
.
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Error: Missing "jsonSchema" Annotation
EC
Effect Community / schema
13mo ago
Generating FastCheck Arbitrary for Input Type Instead of Output Type
EC
Effect Community / schema
8mo ago
Error with Schema Composition and Missing 'strict' Property in Type Definition
EC
Effect Community / schema
16mo ago
Clarifying Type Definition Methods in Schema Usage
EC
Effect Community / schema
2y ago