glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL

Home Page:https://app.quicktype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no support for definitions

jonnytest1 opened this issue · comments

a schema like

{
    "id": "http://json-schema.org/geo",
    "$schema": "http://json-schema.org/draft-06/schema#",
    "description": "A geographical coordinate",
    "type": "object",
    "definitions": {
        "Def1": {
            "type": "object",
            "properties": {
                "longitude": {
                    "type": "string",
                    "const": "sdf"
                }
            }
        }
    },
    "properties": {
        "latitude": {
            "$def": "#/definitions/Def1"
        },
        "longitude": {
            "type": "string",
            "const": "sdfss"
        }
    }
}

should be resolvable