glideapps/quicktype

Unhelpful error message when schema JSON is invalid

クローズ

#1,062 opened on 2018/09/11

 (4 件のコメント) (20 件のリアクション) (0 人の担当者)TypeScript (968 件のフォーク)batch import
CLIbuggood first issue

Repository metrics

Stars
 (10,867 個のスター)
PR merge metrics
 (PR metrics pending)

説明

{
  "$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.

コントリビューターガイド