This repo contains the json schema meta schema and code to package it on npm, generate typings, etc.
npm install --save @json-schema-tools/meta-schema
go get github.com/json-schema-tools/meta-schema
cargo install json_schema
typescript
import JSONSchema, { JSONSchemaObject, Properties, Items } from "@json-schema-tools/meta-schema"
```rust let foo = r#"{ "title": "helloworld", "type": "string" }"#;
let asjsonschema: JSONSchemaObject = serdejson::fromstr(foo).unwrap(); ```
```rust let schema = JSONSchemaObjectBuilder::default() .title("foobar".tostring()) .type(Type::SimpleTypes(SimpleTypes::String)) .build() .unwrap();
let asstr = serdejson::to_string(&schema).unwrap(); ```
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.