https://github.com/fanktom/jsonschema
A Go package that parses JSON Schema documents and generates go types including validations
https://github.com/fanktom/jsonschema
compiler golang jsonschema parser rfc
Last synced: 27 days ago
JSON representation
A Go package that parses JSON Schema documents and generates go types including validations
- Host: GitHub
- URL: https://github.com/fanktom/jsonschema
- Owner: fanktom
- License: mit
- Created: 2018-01-17T20:05:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T14:33:56.000Z (almost 8 years ago)
- Last Synced: 2025-08-15T09:57:35.876Z (6 months ago)
- Topics: compiler, golang, jsonschema, parser, rfc
- Language: Go
- Size: 1.12 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonschema
A Go package that parses JSON Schema documents and generates go types including validations
[](https://circleci.com/gh/tfkhsr/jsonschema)
## Features
* Parses schema documents based on https://tools.ietf.org/html/draft-handrews-json-schema-00
* Supports schema validation based on http://json-schema.org/latest/json-schema-validation.html
* Creates a schema lookup index based on JSON Pointers
* Generates source code for any supported language (currently only Go)
* No dependencies on external packages
* Test suite with shared schema fixtures
* Library and standalone compiler binary `jsonschemac`
## GoDoc
Godoc is available from https://godoc.org/github.com/tfkhsr/jsonschema.
## Install
To install as library run:
```
go get -u github.com/tfkhsr/jsonschema
```
To install the standalone compiler binary `jsonschemac` run:
```
go get -u github.com/tfkhsr/jsonschema/cmd/jsonschemac
```