Skip to content

Commit 1d8088e

Browse files
author
Jared Parnell
committed
data-quality: schedule: Exception dates error type update
1 parent 0f62fe7 commit 1d8088e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/errors/validation-error-type.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const ValidationErrorType = {
4242
FIELD_NOT_ALLOWED: 'field_not_allowed',
4343
BELOW_MIN_VALUE_INCLUSIVE: 'below_min_value_inclusive',
4444
URI_TEMPLATE_MISSING_PLACEHOLDER: 'uri_template_missing_placeholder',
45+
EXCEPTION_DATES_NOT_IN_SCHEDULE: 'exception_dates_not_in_schedule',
4546
};
4647

4748
module.exports = Object.freeze(ValidationErrorType);

src/rules/data-quality/schedule-exceptdates-match-recurrence-dates-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('ExceptDatesAreInSchedule', () => {
8686

8787
expect(errors.length).toBe(1);
8888
for (const error of errors) {
89-
expect(error.type).toBe(ValidationErrorType.MISSING_REQUIRED_FIELD);
89+
expect(error.type).toBe(ValidationErrorType.EXCEPTION_DATES_NOT_IN_SCHEDULE);
9090
expect(error.severity).toBe(ValidationErrorSeverity.WARNING);
9191
}
9292
});

src/rules/data-quality/schedule-exceptdates-match-recurrence-dates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = class ExceptDatesAreInSchedule extends Rule {
2424
},
2525
category: ValidationErrorCategory.CONFORMANCE,
2626
severity: ValidationErrorSeverity.WARNING,
27-
type: ValidationErrorType.MISSING_REQUIRED_FIELD,
27+
type: ValidationErrorType.EXCEPTION_DATES_NOT_IN_SCHEDULE,
2828
},
2929
},
3030
};

0 commit comments

Comments
 (0)