© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Detecting Default Annotations in Schema - Effect Community
EC
Effect Community
•
2y ago
richburdon
Detecting Default Annotations in Schema
getAnnotation always returns something
-
- even if not set by the user
; e
.g
.
,
"a number
" is returns by all S
.Number props
. is it possible to determine if the schema has a default
(i
.e
.
, unset
) annotation so that a different default could be chosen
?
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
Issue with Schema.DateTime and JSONSchema Annotations
EC
Effect Community / 🚀-effect
4mo ago
Annotations not appearing in OpenAPI schema when using `.pick` on a Struct
EC
Effect Community / 🚀-effect
8mo ago
Using Default Values for Schema Instances in Unit Tests
EC
Effect Community / 🚀-effect
3mo ago
Adding Annotations to Effects in Generator Functions
EC
Effect Community / 🚀-effect
2y ago