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
2.82k stars 313 forks source link

Mode: New mode for splitting `httpClient` and `client` code into two files #1591

Open master8848 opened 3 weeks ago

master8848 commented 3 weeks ago

What happens?

I am using electron application when I am having client and httpClient in same file server is trying to import react query which is breaking on build

What versions are you using?

  System:
    OS: macOS 14.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 230.52 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  npmPackages:
    @tanstack/react-query: ^5.51.23 => 5.51.23 
    orval: ^7.0.1 => 7.0.1 
    react: ^18.3.1 => 18.3.1 
    zod: ^3.23.8 => 3.23.8 
soartec-lab commented 2 weeks ago

I think same as #1576