-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lua] Add API client generation #4794
Comments
@daurnimator sounds good to me :) May I know if you're working on the Lua generator? Do you need any help from us (the community)? |
Not yet. Though I'm considering it.
Indeed: I'm not sure where to start. (I've just had a look around at some of the other generators: shouldn't be too hard to translate...) |
We recently add the Bash generator via #4541, which may serve as a good starting point to add a new client generator. |
Hi, didn't try it personally wth swagger but lua-Spore is not sufficient? |
I didn't realise lua-Spore had a swagger component. It might actually be suitable for me. I'm wondering if adding lua support to swagger-codegen is the most useful thing to do. I feel like a fully dynamic-runtime approach like swagger-js took might be more appropriate. |
@daurnimator dynamic client approach (e.g. swagger-js, lua-spore) is definitely one way to do it but some developers prefer static clients generated by Swagger Codegen. |
@daurnimator any progress on this |
@daurnimator @zjarkov @kigsmtua similar to PowerShell and Rust, we can go through the same approach by creating a Lua API client for PetStore by focusing on a few endpoints. The Lua code can be put in the folder Then we can reverse-engineer the Lua code to create the mustache templates and the generator in Java. |
No. I think I'm one of those developers that prefers a dynamic approach :) |
I'm not totally sure what you're requesting. If you can explain further (are you on irc? matrix?) I'm happy to give you samples. I created the PR #6244 to track. |
@daurnimator thanks. Let me review the code. |
Add lua API client generation.
Probably using lua-http
The text was updated successfully, but these errors were encountered: