| 1 |
From: Jérémy Lal <[email protected]> |
| 2 |
Date: Sun, 16 Mar 2025 14:15:56 +0100 |
| 3 |
Subject: compatibility with golang-github-getkin-kin-openapi 0.120.0 |
| 4 |
|
| 5 |
Forwarded: no |
| 6 |
|
| 7 |
Tests were written for an old version of it |
| 8 |
--- |
| 9 |
test/integration/builder3/main.go | 2 +- |
| 10 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 |
|
| 12 |
diff --git a/test/integration/builder3/main.go b/test/integration/builder3/main.go |
| 13 |
index 5c8ca36..898463c 100644 |
| 14 |
--- a/test/integration/builder3/main.go |
| 15 |
+++ b/test/integration/builder3/main.go |
| 16 |
@@ -60,7 +60,7 @@ func main() { |
| 17 |
log.Fatalf("OpenAPI v3 ref resolve error: %s", err.Error()) |
| 18 |
} |
| 19 |
|
| 20 |
- err = specForValidator.Validate(loader.Context) |
| 21 |
+ err = specForValidator.Validate(loader.Context, openapi3.DisableSchemaDefaultsValidation()) |
| 22 |
|
| 23 |
if err != nil { |
| 24 |
log.Fatalf("OpenAPI v3 validation error: %s", err.Error()) |