Skip to content

Commit

Permalink
Merge pull request #12346 from AnuGayan/master
Browse files Browse the repository at this point in the history
Fix issue when validating an OpenAPI 3.1.0 definition
  • Loading branch information
tharikaGitHub authored Mar 24, 2024
2 parents e549a76 + 0d119ac commit da60746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit da60746

Please sign in to comment.