Skip to content

Empty output for TypeScript → JSONSchema conversion #966

@danvk

Description

@danvk

I can use the quicktype web interface to convert a TypeScript interface definition to more verbose JSONSchema:
image

But I'm unable to do the same from the command line. I just get an empty schema.json output:

$ cat name.ts
interface Name {
    first: string;
    last: string;
}                                                                                                                                                                                                                                                $ quicktype --src-lang typescript --src name.ts --lang schema --out schema.json
$ cat schema.json
{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "definitions": {}
}
$ quicktype --version
quicktype version 15.0.62
Visit quicktype.io for more info.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    need infoWe need more information, or we can't resolve this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions