glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.79k stars 1.04k forks source link

no support for definitions #2507

Closed jonnytest1 closed 5 months ago

jonnytest1 commented 5 months ago

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