glideapps/quicktype

Unhelpful error message when schema JSON is invalid

已关闭

#1,062 创建于 2018年9月11日

 (4 条评论) (20 个反应) (0 位负责人)TypeScript (968 个派生)batch import
CLIbuggood first issue

仓库指标

星标
 (10,867 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/foo",
  "definitions": {
    "foo": {
      "type": "object",
      "properties": {
        "bar": {
          "$ref": "bar.json#"
        },
      },
      "required": [
        "bar"
      ],
    },
    "title": "foo"
  }
}

Running quicktype CLI with this Schema produces

Error: Internal error: Defined value expected, but got undefined.

贡献者指南