Skip to content

Commit

Permalink
Update OpenAPIComponentMapper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SachinAkash01 authored Oct 19, 2023
1 parent d5ed7db commit de2be12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
import static io.ballerina.openapi.converter.Constants.HTTP;
import static io.ballerina.openapi.converter.Constants.HTTP_CODES;
import static io.ballerina.openapi.converter.Constants.REGEX_INTERPOLATION_PATTERN;
import static io.ballerina.openapi.converter.Constants.CHECK_DATE_CONSTRAINT;
import static io.ballerina.openapi.converter.Constants.DATE_CONSTRAINT_ANNOTATION;

/**
* This util class for processing the mapping in between ballerina record and openAPI object schema.
Expand Down Expand Up @@ -877,7 +877,7 @@ private boolean isConstraintAnnotation(AnnotationNode annotation) {
* Once the above improvement is completed this method should be removed!
*/
private boolean isDateConstraint(AnnotationNode annotation) {
return annotation.annotReference().toString().trim().equals(CHECK_DATE_CONSTRAINT);
return annotation.annotReference().toString().trim().equals(DATE_CONSTRAINT_ANNOTATION);
}

/**
Expand Down

0 comments on commit de2be12

Please sign in to comment.