mirror of
https://github.com/GSA/notifications-api.git
synced 2026-04-18 08:10:59 -04:00
The regex to validate uuids was not rejecting uuids with a space at the end.
Switched to using a isinstance check on the string. Added an order by clause to dao_get_template_usage_stats_by_service, it was causing an itermitten failure in the tests.
This commit is contained in:
@@ -5,7 +5,7 @@ If the definition is specific to a version put it in a definition file in the ve
|
||||
|
||||
uuid = {
|
||||
"type": "string",
|
||||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
|
||||
"format": "validate_uuid",
|
||||
"validationMessage": "is not a valid UUID",
|
||||
"code": "1001", # yet to be implemented
|
||||
"link": "link to our error documentation not yet implemented"
|
||||
|
||||
Reference in New Issue
Block a user