glideapps/quicktype

Unhelpful error message when schema JSON is invalid

Open

#1 062 ouverte le 11 sept. 2018

Voir sur GitHub
 (4 commentaires) (20 réactions) (0 assignés)TypeScript (968 forks)batch import
CLIbuggood first issue

Métriques du dépôt

Stars
 (10 867 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur