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
Hey guys, first of all amazing library. We use your library at work to generate GraphQL types for our internal Swagger APIs. We have pretty huge schemas at our company and some of them rely on the usage of oneOf for polymorphism in responses.
I created a pull request with my current changes and as you can see in #330 it now correctly generates unions for oneOf responses. It took a lot of effort on my behalf to figure out where to apply even these small changes and now I'm kinda stuck. My changes are probably a bit naive, so I'm reaching out and asking for your help and feedback to get this change into your library. :)
I already tested this change against our internal .yaml which is about 2500 lines and everything was generated without a problem. So I'm pretty confident it's "ok". Still...
What am I probably missing, that could break this? What tests do I have to add if any? I'm really looking forward to your response, because we are in need of that feature to continue using your library.
Thanks in advance and best regards
Flo
The text was updated successfully, but these errors were encountered:
@ftatzky Thank you so much for your kind words! It is always very exciting to hear from our users! And to hear that you are using our tool on large production schemas is also very cool!
I took a look at your PR and also did some of my own investigation. This is definitely a problem that needs to be resolved. I'll provide more feedback in the PR.
I apologize if our code base is difficult to navigate! We've tried our best to provide plenty of comments but unfortunately, the task of wrapping REST APIs in GraphQL is still quite a complex one. I'm curious about your experience however, trying to understand our source code, and also if you have any ideas on how we can make it easier for people to learn our code base.
Hey guys, first of all amazing library. We use your library at work to generate GraphQL types for our internal Swagger APIs. We have pretty huge schemas at our company and some of them rely on the usage of oneOf for polymorphism in responses.
I created a pull request with my current changes and as you can see in #330 it now correctly generates unions for oneOf responses. It took a lot of effort on my behalf to figure out where to apply even these small changes and now I'm kinda stuck. My changes are probably a bit naive, so I'm reaching out and asking for your help and feedback to get this change into your library. :)
I already tested this change against our internal .yaml which is about 2500 lines and everything was generated without a problem. So I'm pretty confident it's "ok". Still...
What am I probably missing, that could break this? What tests do I have to add if any? I'm really looking forward to your response, because we are in need of that feature to continue using your library.
Thanks in advance and best regards
Flo
The text was updated successfully, but these errors were encountered: