Skip to content

fix: replace jsonschema library#534

Merged
fiam merged 4 commits intomasterfrom
alberto/eng-2163-fix-data-race-in-graphql-go-tools-when
May 16, 2023
Merged

fix: replace jsonschema library#534
fiam merged 4 commits intomasterfrom
alberto/eng-2163-fix-data-race-in-graphql-go-tools-when

Conversation

@fiam
Copy link
Copy Markdown
Contributor

@fiam fiam commented May 15, 2023

github.com/qri-io/jsonschema has race conditions, bugs and seems to not
be maintained anymore. Use github.com/santhosh-tekuri/jsonschema/v5 instead

Registration is not goroutine-safe, run a dummy validation once to
force the registration, avoiding the race condition in subsequent
parallel runs.
Copy link
Copy Markdown
Member

@devsergiy devsergiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing with this change

@fiam
Copy link
Copy Markdown
Contributor Author

fiam commented May 15, 2023

tests are failing with this change

Yep, on it

fiam added 3 commits May 16, 2023 12:33
…hema/v5

github.com/qri-io/jsonschema has race conditions, bugs and seems to not
be maintained anymore.
@fiam fiam changed the title fix: workaround for data race in qri-io/jsonschema fix: replace jsonschema library May 16, 2023
Comment thread pkg/graphqljsonschema/jsonschema_test.go
@fiam fiam merged commit c866e35 into master May 16, 2023
@fiam fiam deleted the alberto/eng-2163-fix-data-race-in-graphql-go-tools-when branch May 16, 2023 14:06
pvormste added a commit to TykTechnologies/graphql-go-tools that referenced this pull request Jun 23, 2023
pvormste added a commit to TykTechnologies/graphql-go-tools that referenced this pull request Jun 26, 2023
This PR adds the following changes from wundergraph:
- wundergraph#534
- wundergraph#538
- wundergraph#540
- wundergraph#543
- wundergraph#541

---------

Co-authored-by: Sergiy <818351+devsergiy@users.noreply.github.com>
Co-authored-by: David Stutt <david@wundergraph.com>
Co-authored-by: spetrunin <neyasut@gmail.com>
pvormste added a commit to TykTechnologies/graphql-go-tools that referenced this pull request Jun 28, 2023
This PR adds the following changes from wundergraph:
- wundergraph#534
- wundergraph#538
- wundergraph#540
- wundergraph#543
- wundergraph#541

---------

Co-authored-by: Sergiy <818351+devsergiy@users.noreply.github.com>
Co-authored-by: David Stutt <david@wundergraph.com>
Co-authored-by: spetrunin <neyasut@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants