Skip to content

sdbs-uni-p/better-ajv-errors-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

A Dockerfile providing the setup for running the better-ajv-errors JSON validator.

How to run?

Prepare files

Move your instance and schema JSON files to ./json.

$ mkdir json
$ mv [files] json

Build

$ docker build -t [image_name] . 

Launch interactive shell

$ docker run -it [image_name] bash

Run validator

# node validate.js schema_file instance_file

Example

# node validate.js json/schema.json json/valid.json
# node validate.js json/schema.json json/invalid.json
REQUIRED must have required property 'longitude'

> 1 | {"latitude":48.9,"lognitude":2.2}
    | ^ ☹️  longitude is missing here!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published