Skip to content
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

[GO] allow multiple types in jsonschema #1221

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alonsopec89
Copy link
Contributor

@alonsopec89 alonsopec89 commented Nov 8, 2024

adding support for multiple_types here: invopop/jsonschema@main...alonsopf:jsonschema:main

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)
  • Docs updated

@alonsopec89 alonsopec89 changed the base branch from main to next November 8, 2024 23:21
@apascal07
Copy link
Collaborator

apascal07 commented Nov 11, 2024

We want to fix these tests here (currently skipped because they fail):

skip := map[string]bool{

@alonsopec89 alonsopec89 linked an issue Nov 11, 2024 that may be closed by this pull request
@alonsopec89 alonsopec89 self-assigned this Nov 12, 2024
@alonsopec89 alonsopec89 changed the title [GO] DRAFT WIP allow multiple types in jsonschema [GO] allow multiple types in jsonschema Nov 12, 2024
@pavelgj pavelgj changed the base branch from next to main November 13, 2024 00:27
@@ -95,3 +96,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240708141625-4ad9e859172b // indirect
google.golang.org/grpc v1.65.0 // indirect
)

replace github.com/invopop/jsonschema => github.com/alonsopf/jsonschema v0.0.0-20241112034953-8a224be9076f
Copy link
Collaborator

@apascal07 apascal07 Nov 15, 2024

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[Go] picoschema does not implement all the features of JS
2 participants