From b58e74d9691201100c22c6ffad846fc1ae371b6a Mon Sep 17 00:00:00 2001 From: AnuGayan Date: Thu, 21 Mar 2024 19:13:24 +0530 Subject: [PATCH] Fix issue when validating an OpenAPI 3.1.0 definition --- .../org/wso2/carbon/apimgt/impl/definitions/OASParserUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OASParserUtil.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OASParserUtil.java index c49c54dd4824..25745b795e79 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OASParserUtil.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OASParserUtil.java @@ -917,7 +917,7 @@ public static String convertOAStoJSON(OpenAPI oasDefinition) { * @return */ public static boolean isOpenAPIVersion31(OpenAPI oasDefinition) { - return APIConstants.OAS_V31.equals(oasDefinition.getSpecVersion().name()); + return APIConstants.OAS_V31.equalsIgnoreCase(oasDefinition.getSpecVersion().name()); } /**