You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I think the main problem is that oneOf inheritance is not yet supported - only OpenAPI's allOf, which works in the "other" direction - i.e. with all of you specify the schemas which inherit from "this" schema, with allOf you define the base schema.
Implementing this in a nice and not breaking way is not simple, I tried it already twice ;-)
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.
Using the following code:
I get this code, which is a subset of the types in the JSON schema definition.
The JSON schema definition is using draft 7, and I have seen #574, so I assume it might be something to do with that?
The text was updated successfully, but these errors were encountered: