diff --git a/Taskfile.yml b/Taskfile.yml index 6902d24..5df2c25 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -11,4 +11,16 @@ tasks: sh: echo {{.SCHEMA}} | perl -pe's/ya?ml/json/g' sources: ["{{.SCHEMA}}"] generates: ["{{.DEST}}"] - cmds: transerialize {{.SCHEMA}} {{.DEST}} + cmds: + - transerialize {{.SCHEMA}} {{.DEST}} + + validate: + silent: true + cmds: + - | + ajv validate \ + --all-errors \ + --errors=json \ + --verbose \ + -s schemas-yaml/character.yml \ + -d {{.CLI_ARGS}}