About this snippet
There is also a form version of this utility that you can use. Access it here. Take an example object and use it as a template to generate an input or output schema from that object.
This is useful when you
- Create a complex input/output schema (saves you time)
- Edit an existing schema (makes it possible)