fix(deps): update module github.com/wundergraph/graphql-go-tools/v2 to v2.25.0 #982

Merged
renovate merged 2 commits from renovate/github.com-wundergraph-graphql-go-tools-v2-2.x into main 2026-09-28 08:32:02 +00:00
Showing only changes of commit afb6df6998 - Show all commits
+7 -7
View File
@@ -50,12 +50,12 @@ func MergeSDLs(SDLs ...string) (string, error) {
doc, report := astparser.ParseGraphqlDocumentString(strings.Join(rawDocs, "\n"))
if report.HasErrors() {
return "", fmt.Errorf("parse graphql document string: %w", report)
return "", fmt.Errorf("parse graphql document string: %w", &report)
}
astnormalization.NormalizeSubgraphSDL(&doc, &report)
if report.HasErrors() {
return "", fmt.Errorf("merge ast: %w", report)
return "", fmt.Errorf("merge ast: %w", &report)
}
if err := MergeAST(&doc); err != nil {
@@ -81,11 +81,11 @@ func validateSubgraphs(subgraphs []string) error {
return err
}
if report.HasErrors() {
return fmt.Errorf(parseDocumentError, report)
return fmt.Errorf(parseDocumentError, &report)
}
validator.Validate(&doc, &report)
if report.HasErrors() {
return fmt.Errorf("validate schema: %w", report)
return fmt.Errorf("validate schema: %w", &report)
}
}
return nil
@@ -96,11 +96,11 @@ func normalizeSubgraphs(subgraphs []string) error {
for i, subgraph := range subgraphs {
doc, report := astparser.ParseGraphqlDocumentString(subgraph)
if report.HasErrors() {
return fmt.Errorf(parseDocumentError, report)
return fmt.Errorf(parseDocumentError, &report)
}
subgraphNormalizer.NormalizeDefinition(&doc, &report)
if report.HasErrors() {
return fmt.Errorf("normalize schema: %w", report)
return fmt.Errorf("normalize schema: %w", &report)
}
out, err := astprinter.PrintString(&doc)
if err != nil {
@@ -160,7 +160,7 @@ func (m *normalizer) normalize(operation *ast.Document) error {
for _, walker := range m.walkers {
walker.Walk(operation, nil, &report)
if report.HasErrors() {
return fmt.Errorf("walk: %w", report)
return fmt.Errorf("walk: %w", &report)
}
}