Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/weaming/is-valid-json-schema
- Owner: weaming
- Created: 2018-06-26T12:32:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T15:23:10.000Z (over 5 years ago)
- Last Synced: 2024-11-13T11:52:27.592Z (3 months ago)
- Topics: json-schema, quickstart, testing
- Language: Go
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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