quicktype
quicktype copied to clipboard
Unable to generate C# types for GitHub's webhook schema
I'm attempting to generate C# types for GitHub's webhook schema. There is no official schema, but they have been generated here, and I am specifically attempting to use this file.
When running the following command:
quicktype --lang cs --out webhooks.cs --src-lang schema --debug all schema.json
I get the error:
Error: Trying to make an empty union - do you have an impossible type in your schema?.
I've uploaded the full debug output here, and my quicktype version info is:
$ quicktype --version
quicktype version 15.0.260
I've also attempted to convert from the TypeScript types that are generated from the JSON schema, using the command:
quicktype --lang cs --out webhooks.cs --src-lang typescript --debug all schema.d.ts
quicktype exits with no error (debug log here), but no POCOs are generated (see the complete output here)