跳转到主要内容
CuteJSON
↑↓ 导航 Enter 选择 Esc 关闭

JSON Schema Validator

Check a JSON document against a JSON Schema and see every mismatch, each with the keyword that rejected it and the path to the value.

返回所有工具

键盘快捷键

这些快捷键在页面上对应操作存在时有效。

打开命令面板
Ctrl/Cmd + K
运行主要操作
Ctrl/Cmd + Enter
格式化
Ctrl/Cmd + Shift + F
压缩
Ctrl/Cmd + Shift + M
复制输出
Ctrl/Cmd + Shift + C
打开文件
Ctrl/Cmd + Shift + O
下载输出
Ctrl/Cmd + S
关闭此对话框
Esc
打开此对话框
F1 / ?

本地数据

以下所有内容仅存储在此浏览器、此设备上。

未保存的草稿
记住选项的工具

最近打开的文件

    此设备上尚未打开任何文件。

    通过链接分享

    内容被打包在链接 # 号之后的部分。

    分享此页面上的第一个输入。

    暂无可分享的内容。

    Schema

    从 URL 加载

    直接从浏览器获取 URL。

    Document

    从 URL 加载

    直接从浏览器获取 URL。

    完全在您的浏览器中运行。

    关于此工具

    This validator covers the subset the schema generator on this site writes, so a schema produced here is a schema this page can apply: type, enum and const, the properties, patternProperties, additionalProperties, required, propertyNames, dependentRequired and dependentSchemas keywords, length, pattern and format on strings, bounds and multiples on numbers, items and uniqueItems on arrays, the allOf, anyOf, oneOf and not combinators, if-then-else, and local references through $defs or definitions. Keywords it does not implement are treated as annotations and ignored, which is what JSON Schema permits a validator to do. A reference that names nothing in the schema, or one that points outside it, stops the whole check and says so, because reporting a result for a schema that was never fully applied would be a lie. Every other failure is reported once, with the keyword that rejected it and a JSON pointer to the value, so a problem is a path you can walk to rather than a sentence you have to decode.

    使用方法

    1. Paste a schema into the left pane. Loading the sample fills both panes, so you can change the document and see what the schema rejects.
    2. Paste the document to check into the right pane.
    3. Press Validate. Each problem is listed with the keyword that rejected it and the path to the value.