-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic default #2393
Labels
Comments
@DrummerSi Sorry for the late reply. Yeah, we could as it but it will be costly to make a such callback. It is not so hard to implement. I like the idea and I'll add to the list of future improvements. |
Any update on this right now? |
@lilingxi01 Unfortunately not. |
12 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to be able to specify a function for default values within a schema
The following schema use currently causes an error, due to the default timestamp field expecting a number, not a function:
The default function returns what is expected (a number). Could support be added to calculate default value functions? Or would that add to much overhead? I think it'd be perfect for use cases like this where you wish to store the current timestamp
The text was updated successfully, but these errors were encountered: