add validate task
This commit is contained in:
parent
349588a0c6
commit
c9e24ac0df
14
Taskfile.yml
14
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}}
|
||||
|
Loading…
Reference in New Issue
Block a user