Skip to content

"Partial option parsing should not have failed" #2457

@weberc2-tempus

Description

@weberc2-tempus

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"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions