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.

貢獻者指南