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

"Partial option parsing should not have failed"

weberc2-tempus opened this issue · comments

I think this might be related to passing Go-specific options while trying to generate output for both TypeScript and Go in a single command. Feels like this should be supported or else some clear error message should be provided.

version

$ quicktype --version
quicktype version 23.0.80
Visit quicktype.io for more info.

error

$ quicktype -o pkg/transport/list.go -o frontend/transport/list.ts --package transport --src-lang schema ./jsonschema/list.schema.json
Error: Internal error: Partial option parsing should not have failed.

list.schema.json

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://example.com/list.schema.json",
    "title": "List",
    "description": "A user's list",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "Identifies the list"
        },
        "name": {
            "type": "string",
            "description": "Name of the list"
        },
        "created": {
            "type": "string",
            "description": "Creation date.",
            "format": "date-time"
        }
    },
    "required": [
        "id",
        "name"
    ]
}