包详细信息

@json-schema-tools/meta-schema

json-schema-tools328.2kApache-2.01.7.5

JSON Schema Meta Schema & Generated types for typescript, rust, golang and python

自述文件

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 = serde_json::from_str(foo).unwrap();

Using builder pattern

let schema = JSONSchemaObjectBuilder::default()
    .title("foobar".to_string())
    ._type(Type::SimpleTypes(SimpleTypes::String))
    .build()
    .unwrap();

let as_str = serde_json::to_string(&schema).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.

更新日志

1.7.5 (2024-05-07)

Bug Fixes

1.7.4 (2024-04-11)

Bug Fixes

1.7.3 (2024-04-11)

Bug Fixes

1.7.2 (2024-04-11)

Bug Fixes

1.7.1 (2024-04-11)

Bug Fixes

1.7.0 (2022-10-04)

Bug Fixes

  • try something else for the build (0e64137)
  • try to get build working on ci (4f04e7d)
  • update node version in circle deploy (fd7f8b5)

Features

  • bump versions to latest (df49b7b)

1.6.19 (2021-06-24)

Bug Fixes

  • add rust tests and update readme (444f92b)
  • remove additional whitespace (4688690)

1.6.18 (2021-06-18)

Bug Fixes

1.6.17 (2021-06-18)

Bug Fixes

  • update the appropriate schema (089d5bb)

1.6.16 (2021-06-18)

Bug Fixes

  • update transpiler to fix rust cycles (da21952)

1.6.15 (2021-06-18)

Bug Fixes

  • missing type on simpleTypes (428bfdf)

1.6.14 (2021-06-17)

Bug Fixes

  • bump to new sem rel trans incl rust fixes (9f79271)

1.6.13 (2021-06-11)

Bug Fixes

  • missing dot json extension (ce87d76)
  • restore packagelock and fix the updating issue (f28a0d2)

1.6.12 (2021-06-11)

Bug Fixes

1.6.11 (2021-06-11)

Bug Fixes

  • rust typings gen updates (3997302)

1.6.10 (2021-05-27)

Bug Fixes

  • add license and description to cargo yaml (9cc20d6)

1.6.9 (2021-05-27)

Bug Fixes

  • update sem rel trans for rust again (b60e130)

1.6.8 (2021-05-27)

Bug Fixes

  • update sem rel trans for rust fixes (8c1432a)

1.6.7 (2021-05-26)

Bug Fixes

  • missing derive feature in rust (8e43df4)

1.6.6 (2021-05-26)

Bug Fixes

  • rust generation should work now (4bf5716)

1.6.5 (2021-05-26)

Bug Fixes

  • replace initial checkout in rust release (8034933)

1.6.4 (2021-05-26)

Bug Fixes

  • release needs to checkout master (438e0d9)

1.6.3 (2021-05-26)

Bug Fixes

  • update sem rel trans to fix leading symbol issue (007ca63)

1.6.2 (2021-05-26)

Bug Fixes

1.6.1 (2021-05-20)

Bug Fixes

  • release should be publish (022ade9)

1.6.0 (2021-05-20)

Bug Fixes

Features

  • add rust release in circleci (440a8ec)
  • update sem rel trans (c426617)

1.5.10 (2020-11-03)

Bug Fixes

1.5.9 (2020-10-27)

Bug Fixes

1.5.8 (2020-10-09)

Bug Fixes

  • ensure that the second release commit skips ci (655b0a0)
  • update to latest sem rel transpiler (96a665f)

1.5.7 (2020-10-06)

Bug Fixes

  • pin the tail on the donkey at this point (ea3e8cb)

1.5.6 (2020-10-06)

Bug Fixes

  • add exec sem rel plguin to node modules (4acbf63)
  • try adding an extra commit (3dd0ab4)

1.5.5 (2020-10-05)

Bug Fixes

  • remove nonesense from gitignore (044bf66)

1.5.4 (2020-10-05)

Bug Fixes

  • add missing git plugin for sem rel (6f237a8)

1.0.1 (2020-04-03)

Bug Fixes

1.0.0 (2020-04-03)

Bug Fixes

  • add node version file (#2) (a590d0d)
  • clean things up and put in schema (8d7f7a4)
  • only release with build files, and remove tests (#3) (615feac)
  • remove docs generating (#4) (5b90289)

Features

1.0.0 (2020-04-03)

Bug Fixes

  • add node version file (#2) (a590d0d)
  • clean things up and put in schema (8d7f7a4)
  • only release with build files, and remove tests (#3) (615feac)
  • remove docs generating (#4) (5b90289)

Features