JSON Schema Meta Schema
This repo contains the json schema meta schema and code to package it on npm, generate typings, etc.
Installing
Typescript
npm install --save @json-schema-tools/meta-schema
Golang
go get github.com/json-schema-tools/meta-schema
Rust
cargo install json_schema
Using
Typescript
import JSONSchema, { JSONSchemaObject, Properties, Items } from "@json-schema-tools/meta-schema"
Rust
From a string
let foo = r#"{
"title": "helloworld",
"type": "string"
}"#;
let as_json_schema: JSONSchemaObject = from_str.unwrap;
Using builder pattern
let schema = default
.title
._type
.build
.unwrap;
let as_str = to_string.unwrap;
Contributing
How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.