Skip to content

Commit 9a43e1f

Browse files
committed
Report all errors when schema validation occurs
The templates and the repository's CI system use the `ajv-cli` JSON schema validator to check the data format of various files. The default behavior of `ajv-cli` is to bail out on the first error. I think it is slightly more convenient to get all the errors at once to allow fixing all of them in one go rather than having to repeatedly run the validation before discovering all of them. This behavior is provided by adding the `--all-errors` flag to the `ajv-cli`' commands.
1 parent c5fc7c9 commit 9a43e1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ tasks:
350350
--package=ajv-cli \
351351
--package=ajv-formats \
352352
ajv validate \
353+
--all-errors \
353354
--strict=false \
354355
-c ajv-formats \
355356
-s "{{.WORKFLOW_SCHEMA_PATH}}" \

0 commit comments

Comments
 (0)