Pinia Colada plugin
Please vote on this issue if you're interested in Pinia Colada plugin.
This issue will serve as a to-do list during development. To help us release this feature as quickly as possible, feel free to share the minimum requirements for your use case.
Hey @ThatOneCalculator, let me put a vote on this issue and I will pick it up if there's a sufficient interest!
I'm also interested in this, can try implementing a plugin myself later.
Feel free @taskylizard! Would you like to add it to community plugins or possibly even this repository?
Hopefully this repository, however I probably won't get far on my implementation if it doesn't work out.
No problem at all, I could pick it up after you. I suggest doing only the plugin for experimental parser, unless you need support for OpenAPI 2.0 for some reason, since that is not supported in the experimental parser yet.
This would also solve my issue #1159
@josh-hemphill Can you explain how? Your issue is about a different library/client?
@mrlubos I think Josh is saying that because Pinia Colada is a first-class Vue library, and having support for Pinia Colada would negate the need for a Vue/@vueuse/fetch client
Yes, @ThatOneCalculator is correct. Also, while my issue might not have communicated it well, vueuse/client needed a lot of rewriting to work well in an SDK-like implementation. I only mentioned it since I had already done that for the old openapi-typescript-codegen, and had been trying to use that but wanted to reimplement it in this repo. But with vueuse/fetch's limitations Pinia Colada would be a much better option, and out of the box supports the Vue data loader RFC I had mentioned as well.
I went ahead and created a rough plugin for this, and could use feedback on the PR (#1680 )
Should be able to import the plugin after the typescript plugin and that's all it should need; it does it's own sdk output like the tanstack plugins do.
Man, great work!
Hey guys, sorry for my lack of response, I've unfortunately been busy with life and was unable to attend to this. Hope Josh's PR gets merged, and good luck to your project! I've been using the generator in 2 personal projects, and they've brought me immense joy in what had been a painful process with the other libraries.
Thank you @taskylizard! I'm sure it will get merged, it's looking great!
Very interested in this. We're planning to migrate to Pinia shortly, and enforcing OpenAPI specs for all APIs going forward. This would be huge 🙌
Interested.
@josh-hemphill is your plugin still compatible with current developments, ie can it be rebased? What needs to be done to finalize it?
@Jogai I plan to have a look at it after SDKs get more polished. We spoke with @josh-hemphill last month about this
I needed to rework the SDK output to inherit from the actual SDK plugin for an MVP (there's still some Pinia Coloada features that aren't really implemented well yet); compared to that, rebasing and changing some of the options/interfaces to adhere to the recent updates shouldn't be too much work, but I'm currently focused on a couple of other projects that are blocking each other, so it might be a bit before I'm able to get back to this
@josh-hemphill yeah don't spend time on it now please, I plan to look at it after I polish SDKs more and don't want your effort go to waste in case of changes