相关资料
JSON
JSON Schema 校验
JSON Schema 生成
{ "a" : { "b": "c" } }
21{ "a": [1, 2, 3] }
{ "a": "a" }
{ "a": 1 }
{ "a": true }
{ "a": null }
{ "$schema": "http://json-schema.org/draft/2019-09/schema" }
{ "$id": "http://example.com/example.json" }
{ "type": "number" }
{ "type": ["string", "number"] }
{ "type": "string", "enum": ["red", "amber", "green", null] }
{ "properties": { "country": { "const": "United States of America" } } }
{ "const": "United States of America" } { "enum": [ "United States of America" ] }
{ "type": "string", "contentMediaType": "text/html" }
{ "type": "string", "contentEncoding": "base64", "contentMediaType": "image/png" }