quicktype
quicktype copied to clipboard
Duplicate identifiers when using shared schemas with C#
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.