# jsonvalidate

> Commandline validator of json-files against a json-schema

Latest version **1.0.2** (published 2014-11-20) · Marviq license · 0 weekly downloads

## Install

```sh
npm install jsonvalidate
pnpm add jsonvalidate
yarn add jsonvalidate
bun add jsonvalidate
```

Provides the command `jsonvalidate`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-11-20 |
| First published | 2014-11-20 |
| Weekly downloads | 0 |
| License | Marviq |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bas Velthuizen |
| Maintainers | bas-velthuizen |
| Keywords | json-schema, json |

## Links

- npm: https://www.npmjs.com/package/jsonvalidate
- Repository: https://github.com/marviq/jsonvalidate
- Homepage: http://www.marviq.com
- Issues: https://jira.marviq.com
- npm.io page: https://npm.io/package/jsonvalidate

## Dependencies (3)

- [tv4](https://npm.io/package/tv4.md) ^1.1.4
- [nomnom](https://npm.io/package/nomnom.md) ^1.8.1
- [winston](https://npm.io/package/winston.md) ^0.8.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2014-11-20

## README

#JSON VALIDATE

This script is used to validate JSON files against one or more JSON-schemas.
(See [json-schema.org](http://json-schema.org/documentation.html))

The script has been tested for json-schema draft 3 and 4.

##Installation

Tested on node-0.10.x and node.11.x, requires npm.

    $ npm install -g jsonvalidate
    
This will install the script globally according to your system and you can use it as a standard commandline tool

##Usage

    $ jsonvalidate
    
    Usage: jsonvalidate [options]
    
    Options:
       -f, --file     JSON file  [-]
       -e, --extra    extra JSON schema file
       -s, --schema   JSON schema file
       -d, --debug    Debug logging

If no file is provided, the default, '-' is taken, stdin is used as input:

    $ cat foo.json | jsonvalidate -s fooschema.json

Extra schemas can be loaded for included schemas:

    $ jsonvalidate -f foobar.json -s foo-schema.json -e bar-schema.json

---
_Source: https://npm.io/package/jsonvalidate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
