Wish for an option to generate a static method that returns a JSON Schema for this class
apologies if I missed it, if it exists!
It would be helpful to have the option to generate a static function that returns a Map or a String that contains the JSON Schema that represents this object.
This would make interoping with LLMs a little easier, as I could pass a JSON Schema to the LLM as an example of how to return a JSON for this object.
Thanks!
Chris Sells asked for this, too. I think it exists. Let me ask what he found...
This does the trick: https://pub.dev/packages/soti_schema
Thank you! I'll check it out.
btw, @sethladd, I wanted the exact same feature, so I added it to dartantic_ai.
Thanks! I hope we also get this in json_serializable. This library seems to be the default when using coding agents (at least, so far!)
@sethladd – PRs welcome. 😁
that's what he said to me, too @sethladd : )
I would also love this - our use case being generating schema to validate our backend against for automated testing.