From 1fdd1301dfe51b54a79b129c8386c46908ae6679 Mon Sep 17 00:00:00 2001 From: Patrick Boos Date: Mon, 20 Nov 2023 10:29:51 +0100 Subject: [PATCH] feature: Use strict operation path matching (#52) --- .../validation/core/OpenApiInteractionValidatorFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/OpenApiInteractionValidatorFactory.java b/openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/OpenApiInteractionValidatorFactory.java index 90e228e..3cb0529 100644 --- a/openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/OpenApiInteractionValidatorFactory.java +++ b/openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/OpenApiInteractionValidatorFactory.java @@ -80,6 +80,7 @@ private SingleSpecOpenApiInteractionValidatorWrapper buildSingleSpecOpenApiInter .withResolveRefs(true) .withResolveCombinators(true) // Inline to avoid problems with allOf .withLevelResolver(buildLevelResolver(levelResolverLevels, levelResolverDefaultLevel)) + .withStrictOperationPathMatching() .build(); return new SingleSpecOpenApiInteractionValidatorWrapper(validator); } catch (Throwable e) {