Skip to content

Commit

Permalink
add if statement custom error message
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Dec 13, 2024
1 parent 205ed38 commit 0bd2967
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v4.0.1/tasks-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,10 @@
"round_id": {
"pattern": "^([0-9]{4}-[0-9]{2}-[0-9]{2})$|^[A-Za-z0-9_]+$"
}
},
"errorMessage": {
"properties": {
"round_id": "must match either an ISO date format (YYYY-MM-DD) or alphanumeric characters separated by underscores."}
}
},
"required": [
Expand Down

0 comments on commit 0bd2967

Please sign in to comment.