orval-labs / orval

orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
https://orval.dev
MIT License
3.18k stars 336 forks source link

Axios client generated on one file with function retuning object #1640

Open master8848 opened 1 month ago

master8848 commented 1 month ago

What happens?

when using axios as client on mode :"tags-split" generated code for one tag is defined and returned form one single function

What were you expecting to happen?

like in fetch all functions should be seperated for code splitting/ tree shaking

What versions are you using?

 System:
    OS: macOS 14.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 177.23 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  npmPackages:
    @tanstack/react-query: ^5.53.3 => 5.56.2 
    axios: ^1.7.7 => 1.7.7 
    orval: ^7.1.0 => 7.1.1 
    react: ^18.3.1 => 18.3.1 
    zod: ^3.23.8 => 3.23.8