Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/weaming/is-valid-json-schema

Verify JSON schema quickly.
https://github.com/weaming/is-valid-json-schema

json-schema quickstart testing

Last synced: 21 days ago
JSON representation

Verify JSON schema quickly.

Awesome Lists containing this project

README

        

# is-valid-json-schema
## Install

```
go get -u github.com/weaming/is-valid-json-schema
```

## Usage

```
Usage of is-valid-json-schema:
-data string
data json path
-listen string
fake api server listen on
-schema string
schema json path
```

* `-listen`: serve `$CWD` filesystem as API to provide JSON schema validation service.
* URI endswith `/`: `/index.json` as schema
* `foo/bar`: `foo/bar.json` as schema
* `./map.json` to define your custom mapping from URI to schema file. See [map.json](./map.json)
* `foo/bar?path=a/b/c`: extract data from the POST body by `path` `a/b/c` as the final data to be validate
* `-data`+`-schema`: CLI to verify `data` file against `schema` file