contiamo / restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
MIT License
1.87k stars 109 forks source link

Add support for anyOf #362

Closed x539 closed 3 years ago

x539 commented 3 years ago

OpenAPI schemas with anyOf[A,B] should generate a type A | B not {}.

https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/

netlify[bot] commented 3 years ago

:construction_worker: Deploy request for restful-react accepted.

:hammer: Explore the source changes: c5ba40bcfb3dc6373a68256e493e53c27a26dfc7

:mag: Inspect the deploy log: https://app.netlify.com/sites/restful-react/deploys/60dcc6826c829f000926ae93

fabien0102 commented 3 years ago

Merged into #370 , I did rebased and add some unit test, thanks for your contribution!