It’s kind of annoying to debug function schema errors in the editors. I implemented the JSON schema validator for functions used in function calls. With the monaco-editor
module and json-schema Draft-2020-12. Tedious work . And it’s open sourced in this gist.
If you are supporting editing functions or handling function schema errors in your products/editors. I hope this gist helps.
So now you can see the schema errors before submitting the functions.