Support "async" validation functions #4004
Closed
barrywhart
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 1 reply
-
Hi @barrywhart, Adding support for async validation functions might be a pretty handy feature. It's a bit tricky to fit into the existing API, but I just created a draft PR #4024. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Great, thanks for the quick turnaround! I'll update my existing code to use this. I was using a hacky workaround before. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, it appears that asynchronous validation functions are not supported, resulting in an error, "TypeError: Type is not JSON serializable: coroutine". This would be a useful feature. I have a case where an input (text) field needs to be validated for uniqueness, and this requires querying the application database, which is an
async
call.Beta Was this translation helpful? Give feedback.
All reactions