Skip to content

Conversation

@falonso81
Copy link
Contributor

@falonso81 falonso81 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

@falonso81 falonso81 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{

@falonso81 falonso81 linked an issue Nov 11, 2024 that may be closed by this pull request
@falonso81 falonso81 self-assigned this Nov 12, 2024
@falonso81 falonso81 requested a review from apascal07 November 12, 2024 04:10
@falonso81 falonso81 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
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

Copy link
Collaborator

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.

Copy link
Contributor Author

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

@falonso81
Copy link
Contributor Author

closing to use our own code in #1400

@falonso81 falonso81 closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

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

2 participants