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) {