quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Duplicate identifiers when using shared schemas with C#

Open pbalaga opened this issue 4 years ago • 0 comments

Hello,

how do I reuse the same enum in multiple schema files? Currently, if I do that, each of the generated C# files includes shared enums' definitions. Resulting code will cause build to fail (duplicate identifiers).

I prepared a minimal repo for reproducing the problem ->> link .

There is also a related issue in Kotlin: https://github.com/quicktype/quicktype/issues/1365. Unfortunately, it' still unresolved and there's no --multi-file-output option for C# either.

pbalaga avatar May 20 '21 13:05 pbalaga