Skip to content

Commit

Permalink
#183 added validation definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony4m committed Nov 28, 2024
1 parent 0348d00 commit 47e9111
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public interface Validations {
String contactWithoutInfrastructureData = "contactWithoutInfrastructureData";
String duplicateEpidNumber = "duplicateEpidNumber";
String duplicateExternalToken = "duplicateExternalToken";
String ebsDecisionDateValidation = "ebsDecisionDateValidation";
String ebsSignalDateValidation = "ebsSignalDateValidation";
String emptyOverwrittenFollowUpUntilDate = "emptyOverwrittenFollowUpUntilDate";
String errorsInForm = "errorsInForm";
String eventSubordinateEventFromDateFilterValidation = "eventSubordinateEventFromDateFilterValidation";
Expand Down Expand Up @@ -152,6 +154,7 @@ public interface Validations {
String numberNotInRange = "numberNotInRange";
String numberTooBig = "numberTooBig";
String numberTooSmall = "numberTooSmall";
String numberOfDeathMoreThanCases = "numberOfDeathMoreThanCases";
String onlyDecimalNumbersAllowed = "onlyDecimalNumbersAllowed";
String onlyGeoCoordinatesAllowed = "onlyGeoCoordinatesAllowed";
String onlyIntegerNumbersAllowed = "onlyIntegerNumbersAllowed";
Expand Down Expand Up @@ -250,5 +253,5 @@ public interface Validations {
String visitDate = "visitDate";
String visitStatus = "visitStatus";
String visitSymptoms = "visitSymptoms";
String numberOfDeathPersonGreaterThanNumberOfPersonCases = "numberOfDeathPersonGreaterThanNumberOfPersonCases";
String numberOfDeathPersonGreaterThanNumberOfPersonCases = "numberOfDeathPersonGreaterThanNumberOfPersonCases";
}
3 changes: 3 additions & 0 deletions sormas-api/src/main/resources/validations.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ beforeDate = %s has to be before or on the same day as %s
beforeDateSoft = %s should normally not be after %s. You are still allowed to save.
duplicateEpidNumber = This EPID number already exists.
duplicateExternalToken = This external token already exists.
ebsDecisionDateValidation = The Date of Decision cannot be earlier than the Date of Report or Date of Occurrence.
ebsSignalDateValidation = The Date of Report cannot be earlier than the Date of Occurrence.
futureDate = %s cannot be more than %s days in the future
futureDateStrict = %s cannot be in the future
importCasesPropertyTypeNotAllowed = Property type %s not allowed when importing cases
Expand Down Expand Up @@ -158,6 +160,7 @@ eventSubordinateEventFromDateFilterValidation = The Start Date of the Filter Ran
textTooLong = The text you entered is too long. Maximum allowed length is {max}
textSizeNotInRange = The text you entered is not valid. It's length must be between {min} and {max}
numberTooSmall = The number you entered is too small. The minimum allowed is {value}
numberOfDeathMoreThanCases = The number of death cannot be more than cases
numberTooBig = The number you entered is too big. The maximum allowed is {value}
numberNotInRange = The number you entered is not valid. It should be between {min} and {max}
uuidPatternNotMatching = The UUID you entered is not valid. Only numbers, letters and "-"(dash) is allowed
Expand Down

0 comments on commit 47e9111

Please sign in to comment.