swagger-to-graphql
swagger-to-graphql copied to clipboard
[Feature request] Support `discriminator` and GraphQL interfaces
GraphQL supports polymorphism using GraphQLInterfaceType
. OpenAPI supports it with the discriminator
property (which has a different syntax in 2.0 and 3.0). It would be nice to bring the two together.
This feature request might represent quite lots of work for something I'm not sure people would use, but I thought I'd still submit to see what you think.