add max length validations for summary in challenge create and update… (#14053)

* add max length validations for summary in challenge create and update controllers

* Add validation to group APIs

* fix lint errors

* add validation to group plan

* fix imports

* add tests

* add max length validations for summary in challenge create and update controllers

* Add validation to group APIs

* fix lint errors

* add validation to group plan

* fix imports

* add tests

* lint checks
This commit is contained in:
Nishant Jain
2022-07-23 01:54:24 +05:30
committed by GitHub
parent 8e717de039
commit 8070486def
7 changed files with 71 additions and 1 deletions

View File

@@ -39,4 +39,5 @@ export default {
directionUpDown: '"direction" is required and must be "up" or "down".',
invalidTaskIdentifier: 'A task is identified by its UUID or alias.',
invalidTaskScorings: 'This API route expects a body in the form of [{id, direction}].',
summaryLengthExceedsMax: 'Summary length is too high.',
};