-
Notifications
You must be signed in to change notification settings - Fork 371
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
Enhancement of JSON Schema generation #2549
Comments
For directly creating JsonSchema without the need of an |
@987Nabil Thanks for Another use case is to transform a I considered zio-schema-protobuf, but there's no guarantee that the inferred codec matches the desired protobuf spec. (e.g. the order of enum values) |
@guersam I am working currently on openapi to endpoint code gen and want to work on protobuf next. I will try to solve this in this workflow |
Another finding: Having |
/bounty $200 For all issues raised herein. |
💎 $200 bounty created by ZIO 👉 Add a bounty • Share on socials
|
Sorted maps for OpenAPI for stable json generation (zio#2549)
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
🎉🎈 @987Nabil has been awarded $200! 🎈🎊 |
I'm currently adapting the same command model for ChatGPT, utilizing it in two ways: one through an HTTP endpoint called by the ChatGPT plugin, and the other for direct use via the ChatGPT API.
Thanks to #2470, I've successfully generated a JSON schema. However, while experimenting with RC4, I identified two specific use cases that could be improved:
Eliminating the Need for an IntermediateHttpCodec
To generate a JSON Schema of a case classA
, I currently need to wrap my schema withHttpCodec.content
. A more straightforward method to directly convertSchema[A]
toJsonSchema
would be beneficial.EDIT:
JsonSchema.fromZSchema
does the job.Enhanced Customization During Serialization
In RC4, the generated
JsonSchema
invariably includes theadditionalProperties
field in the serialized JSON. However, I'm looking to remove this field to minimize ChatGPT token usage. I currently do not have a clear interface design or idea for how to achieve this level of customization.The text was updated successfully, but these errors were encountered: