JSON Schema Awesome
validator | lang | version |
---|---|---|
ajv | js | 2020-12, 2019-09, draft-07, draft-06, draft-04 |
santhosh-tekuri/jsonschema | golang | 2020-12, 2019-09, draft-07, draft-06, draft-04 |
- 选择 Schema
- https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-02
- json-schema-org/json-schema-spec
- 工具
- json-schema-traverse
- APIDevTools/json-schema-ref-parser
- MIT, JS
- 合并 $ref
- sagold/json-schema-library
- TS
- hyperjump-io/json-schema-core
- MIT, JS, TS
- framework for building JSON Schema validators
- https://schema.org/docs/schemas.html
- 开放 Schema
- https://json-schema.org/implementations.html
- http://jlblcc.github.io/json-schema-viewer/
- JSON Schema from
- vega/ts-json-schema-generator
- JSON Schema from Typescript
- YousefED/typescript-json-schema
- JSON Schema from Typescript
- invopop/jsonschema
- JSON Schemas from Golang
- draft 2020-12
- victools/jsonschema-generator
- from Java Class
- https://www.liquid-technologies.com/online-json-to-schema-converter
- from JSON
- jsonsystems/public
- from JSON
- https://www.jsonschema.net/
- vega/ts-json-schema-generator
- JSON Schema to
- http://www.jsonschema2pojo.org/
- JSON Schema to POJO
- http://www.jsonschema2pojo.org/
- Data from JSON Schema
- fakejs
- json-schema-faker/json-schema-faker
- jimblackler/jsongenerator
- Apache-2.0, Java
- UI from JSON Schema
- rjsf-team/react-jsonschema-form
- json-editor/json-editor
- MIT, JS
- https://json-editor.github.io/json-editor/
- JSON Schema Based Editor
- ui-schema/ui-schema
- Material UI React
- https://ui-schema.bemit.codes/
- alibaba/formily
- 扩展 JSON Schema 实现的 Form UI 生成
- eclipsesource/jsonforms
- React, MUI
- vazco/uniforms
- MIT, TS, React
- SemanticUI, AndT, MUI, Bootstrap
- https://uniforms.tools/playground
- uniforms - 41kB/12kB - lodash 28kB
- uniforms-bridge-json-schema - self 3kB
- vip-git/universal-json-schema
- MIT, TS, React, MUI
- https://react-jsonschema-form-material-ui-github56.vercel.app/
- restspace/schema-form
- networknt/react-schema-form
- gitana/alpaca
- Bootstrap, jQuery UI, jQuery Mobile
- JS/TS
JSON Schema Form 的几种常见情况
- 完全 UI 生成
- 面向数据场景
- 不会特别好看,但支持的功能多
- 提供默认组件联动
- 面向用户场景
- 通常会抽象 Field/Form 逻辑
- 易于扩展
- 外置 UI Layout 信息
- 推荐 - 保持干净的 Schema
- 扩展 JSON Schema 内置 UI Layout 信息
- 扩展后的 JSON Schema 不一定是合法的 JSON Schema
- 上下关联顺序可能会发生变化
- jviotti/awesome-jsonschema
- json-schema-org/json-schema-spec
- json-schema-org/JSON-Schema-Test-Suite
- CarstenWickner/react-jsonschema-inspector
- Inspector
- Validator
- cloudflare/json-schema-tools
- adobe/jsonschema2md
- 2019-09
- Registry
- usecases
- https://json-schema.org/tools
- OpenAPI
- snowplow/snowplow
- for event definition & validation
- https://blog.heroku.com/json_schema_for_heroku_platform_api
- Google API discovery service https://developers.google.com/discovery/v1/getting_started
- 参考
- Understanding JSON Schema
- proptypes-to-json-schema
- React propTypes -> JSON Schema
Validator
- everit-org/json-schema
- Apache-2.0, Java
- org.json
- Draft v4, Draft v6, Draft v7
- networknt/json-schema-validator
- Apache-2.0, Java
- Draft v4, v6, v7, v2019-09, v2020-12
- Jackson