Skip to content

Root ref fails to parse #201

@isaacl

Description

@isaacl
{
  "$ref": "#/definitions/EmailConfig",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "EmailConfig": {
      "additionalProperties": false,
      "properties": {
        "adminContact": {
          "type": "string"
        }
      }
    }
  }
}

is valid (in fact is part of the test suite here). But json-schema-to-typescript fails to resolve the ref using this library.


Originally filed at bcherny/json-schema-to-typescript#349

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions