glideapps / quicktype

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

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

Open andreav opened 3 months ago

andreav commented 3 months ago

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.