© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
schema string or null - Effect Community
EC
Effect Community
•
2y ago
•
5 replies
mvolkmann
schema string or null
When using the
@effect/schema
@effect/schema
package
, how can you specify that a field of a struct can be a string or null
? I see that
[Schema.string, Schema.null]
[Schema.string, Schema.null]
is not the correct answer
.
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
Schema base64 string -> utf8 string -> json parse
EC
Effect Community / help-forum
2y ago
Best practice for “either both properties are null or required” in schema
EC
Effect Community / help-forum
2y ago
Schema decode a literal to string then encode string to literal
EC
Effect Community / help-forum
11mo ago
Type of string converted to number is wrong in Schema.
EC
Effect Community / help-forum
16mo ago