OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.69k stars 6.55k forks source link

GraphQL support #19378

Open mihalt opened 2 months ago

mihalt commented 2 months ago

I would like to have opportunity to have multiple the same path but different operationId to generate clients from it. Also I would like to have opportunity to set default body in openapi spec. Would be nice to see this in the next releases.

dannysheridan commented 2 months ago

Check out https://github.com/graphql-python/gql which may be a solution in this case

mihalt commented 2 months ago

Check out https://github.com/graphql-python/gql which may be a solution in this case

If I understand correct, it doesn't generate python functions. I should pass needed fragments of graphql spec manually to a client when call it. So, it doesn't very differ from requests or httpx libs.