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

SolidJS: Tanstack implementation #1486

Open melloware opened 4 months ago

melloware commented 4 months ago

Discussed in https://github.com/anymaniax/orval/discussions/1448

Originally posted by **Blankeos** June 10, 2024 Really cool library! Was wondering if it's possible to port this for **Solid Query** as well? Don't know if I could do it personally but would be very interested in reading through how to do it. Can anyone point me to the right direction?

Try this fork of Orval only for Solid.js for now, until the official Orval starts supporting it.

Github: github.com/AndrejNemec/openapi-tanstack-query-solid#readme NPM: https://www.npmjs.com/package/otqs

ramipellumbi commented 2 months ago

Having this would be an amazing for the solid community! The problem with the library from prior is it doesn't support custom http clients (and I cannot use axios over fetch here).

melloware commented 2 months ago

Now that Fetch has been added to Orval i would think this would be possible just need someone to provide a PR to support SolidJS now.