mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Change schema format name of datetime format
Renamed the 'datetime' format to 'datetime_within_next_day'. This format is used to validate the date and time of scheduled notifications, not to check the format of a datetime.
This commit is contained in:
@@ -29,7 +29,7 @@ def validate(json_to_validate, schema):
|
||||
validate_email_address(instance)
|
||||
return True
|
||||
|
||||
@format_checker.checks('datetime', raises=ValidationError)
|
||||
@format_checker.checks('datetime_within_next_day', raises=ValidationError)
|
||||
def validate_schema_date_with_hour(instance):
|
||||
if isinstance(instance, str):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user