glideapps/quicktype

Unhelpful error message when schema JSON is invalid

Open

#1.062 geöffnet am 11. Sept. 2018

Auf GitHub ansehen
 (4 Kommentare) (20 Reaktionen) (0 zugewiesene Personen)TypeScript (10.867 Stars) (968 Forks)batch import
CLIbuggood first issue

Beschreibung

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

Contributor Guide