Public Repository

Last pushed: 9 months ago
Short Description
Container of the ajv-cli
Full Description

Github: https://github.com/epoberezkin/ajv-cli

I placed this in my .bashrc:

function docker_ajv() {
  docker run --rm -it -v ${HOME}:${HOME} -w ${PWD} blei/ajv $@
}

alias ajv=docker_ajv

This will allow me to run ajv as if it was actually installed on my box:

$ ajv
Validate data file(s) against schema
    ajv [validate] -s schema[.json] -d data[.json]
    ajv [validate] -s schema[.json] -d "data*.json"

Compile schema(s)
    ajv compile -s schema[.json]
    ajv compile -s "schema*.json"

Test data validation result
    ajv test -s schema[.json] -d data[.json] --valid
    ajv test -s schema[.json] -d data[.json] --invalid
    ajv test -s schema[.json] -d "data*.json" --valid 

More information:
        ajv help validate
        ajv help compile
        ajv help test
Docker Pull Command
Owner
blei

Comments (0)