-
Notifications
You must be signed in to change notification settings - Fork 632
[GO] allow multiple types in jsonschema #1221
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
Conversation
|
We want to fix these tests here (currently skipped because they fail):
|
| google.golang.org/grpc v1.65.0 // indirect | ||
| ) | ||
|
|
||
| replace github.com/invopop/jsonschema => github.com/alonsopf/jsonschema v0.0.0-20241112034953-8a224be9076f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert? Or are you actually relying on changes in your fork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually relying on changes in my fork to support multiple types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's no good. We don't want to rely on a fork of this, it's not sustainable for us to maintain it. Is there any way to roll those changes into the Genkit library? Otherwise we need to explore a different solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened a PR in the jsonschema repo, also I'm reviewing anothers options if doesn't get merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I believe the maintainer of the package has stated that they do not intend to support multiple types because Go is strongly typed and this would make it very complicated. We need a different solution, either a different package or something creative within our own codebases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, I tried to do in this PR using our own codebase #1400
|
closing to use our own code in #1400 |
adding support for multiple_types here: invopop/jsonschema@main...alonsopf:jsonschema:main
Checklist (if applicable):