It would be valuable to improve generated to support temporal expressions beyond now.
Example:
fields:
year:
type: string
generated: "format(now, 'YYYY')"
quarter:
type: string
generated: "format(now, 'Q')"
The current now strategy only produces full datetime. Many use cases need just the year, month, quarter, or formatted date. Without this, tools resort to custom expression languages.
Spec section: Generated Field Strategies
It would be valuable to improve
generatedto support temporal expressions beyondnow.Example:
The current
nowstrategy only produces full datetime. Many use cases need just the year, month, quarter, or formatted date. Without this, tools resort to custom expression languages.Spec section: Generated Field Strategies