From 7c40118571690ad9e3d66ca60e0d0a9ba11f894b Mon Sep 17 00:00:00 2001 From: Patrick Boos Date: Fri, 17 Nov 2023 16:02:48 +0100 Subject: [PATCH] feature: Use strict operation path matching --- .../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) {