glideapps/quicktype

Unhelpful error message when schema JSON is invalid

Fermée

#1 062 ouverte le 11 sept. 2018

 (4 commentaires) (20 réactions) (0 personne assignée)TypeScript (968 forks)batch import
CLIbuggood first issue

Métriques du dépôt

Stars
 (10 867 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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