acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.33k stars 359 forks source link

Filtering out primitives from AnyOf #459

Open inomn opened 1 year ago

inomn commented 1 year ago

Good day. In my project we have a case with anyOf string | object

image

The current implementation of anyOf parsing excludes all primitives, but I want to keep them. Any ideas how it could be done?

p.s. on v10 worked well, generated origin: AddressCreationRequest | string;

Thanks.

js2me commented 1 year ago

Hi @inomn !
Thanks for this issue! Fix that soon

inomn commented 1 year ago

@js2me hi, cool, thanks!

inomn commented 1 year ago

@js2me hi! any estimations on when this could be fixed?

eysi09 commented 1 year ago

Is this still being worked on?

I'm seeing the same issue and it's preventing me from upgrading.

inomn commented 1 year ago

regression in 13.0.2

inomn commented 1 year ago

still the case in 13.0.3