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

Many warnings in multiFileOutput

relet opened this issue · comments

Would it be acceptable to filter them, or is that hiding important information?

if (this._finishedFiles.has(filename) && !this._options.multiFileOutput) {

instead of

if (this._finishedFiles.has(filename)) {

Hi @relet , could you provide some context on what specific warnings you are seeing ?

The warning mentioned in the code

            `[WARNING] Tried to emit file ${filename} more than once. If performing multi-file output this warning can be safely ignored.`

I don't remember exactly what I was seeing, but if you explicitly select multi-file output, it would be sufficient to show it once (if there really is anything to warn about) or suppress it if it can be ignored.