glideapps / glideapps/quicktype

-t/--top-level ignored when using directory input

Open
#2,538 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
13.9k
Forks
1.2k
Avg merge
8h 53m
Merged PRs (30d)
369

Description

Hello,
I have a folder containing many types, each one in its folder, like in the "Multiple JSON" example here https://app.quicktype.io/

The JSON Schema generated has only "definitions" but no top-level type.

I would like to set the top level type using the -t/--top-level option but it seems ignored.

Is it the attended behaviour?

When I use the -t/--top-level option with files input, it works as expected.

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.