-
Notifications
You must be signed in to change notification settings - Fork 430
Add Scala support with akka-http server and client #45
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
Comments
no, this is not a duplicated issue and languages implementations for codegen 3.0.0 are always welcome |
Do you need something from the existing scala Codegen? I could migrate them in this repo if you agree to have a look at the generated scala code (after migration). This might give you a basis that you can extend. |
I have already copied the AbstractScalaCodegen , the existing Akka client, and their templates. I will use these as the basis for the new code generators. I will probably have some vomits in my fork by the weekend.
… On Mar 22, 2018, at 1:27 AM, Jérémie Bresson ***@***.***> wrote:
Do you need something from the existing scala Codegen? I could migrate them in this repo if you agree to have a look at the generated scala code (after migration). This might give you a basis that you can extend.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This is great news! When I copy the Codegen, I go through these steps: For example it would be great to have all the scala stuff in the EDIT: I have noticed you know already that page. I just added 3 small sections:
|
I can give you an other input for the Mustache to Handlebars conversion: I try to keep this wiki page up to date: Swagger Codegen migration from Mustache and Handlebars templates. If you are interested, I have created this class to help with the template migration: ConvertMustache.java. It is really raw and basic, but it does the job. Feedback is welcomed. |
Yes. That’s what I’m doing.
… On Mar 22, 2018, at 1:55 AM, Jérémie Bresson ***@***.***> wrote:
This is great news!
When I copy the Codegen, I go through these steps:
https://github.com/swagger-api/swagger-codegen/wiki/Swagger-Codegen-migration-(swagger-codegen-generators-repository)
For example it would be great to have all the scala stuff in the io.swagger.codegen.languages.scala package. => io.swagger.codegen.languages.scala.AbstractScalaCodegen and so on.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jmini - Thanks for all the pointers. I have a question: would it be acceptable to develop this in my own repository (not a fork) and use Service Locator to let swagger-codegen access it? I would like to retain IP rights. It would be licensed with Apache 2.0 license, same as this project. |
@reid-spencer it's an open source project, you can do whatever you want (within the license limitations). |
@webron - While that is true, the owners have commit and PR approval privilege that I do not have. If there's a policy that says "no external libraries" or other IP concerns that will prevent my changes from being accepted, I want to know about it sooner rather than later. But, sounds like that's not the case. So, onward I will go. Thanks for the feedback. |
Right, not everyone has write access, for understandable reasons. We process PRs regularly and try to make the best decision based on the community and project needs. Not really sure what you mean by "no external libraries" in this case, so difficult to respond to that. |
The advantage of having a generator in the common project If you develop something separated, you are on your own and probably more flexible. For the user of your lib: for maven-plugin usage, the users will need to add your lib as plugin dependency. For cli usage they will need to add your jar (and its dependencies) on the classpath. |
@jmini - Perhaps. I plan to modify swagger-codegen-generators and swagger-codegen just enough so that it all functions like the others. It's just that the templates and the actual CodegenConfig class is in another open source jar file that is added to swagger-codegen-generators dependencies like any other. Would that be okay? |
I am not part of the team, I do not decide. But I can give you my opinion: |
Just wondering what the latest is on this. |
Hi guys, |
@rbiersbach I was planning on getting to this around late September so if you can get this started now, that would be great! |
I am still interested but priorities have changed a bit for me. I'm flat
out busy for months ahead. One of the things that happened in my review is
that I really couldn't deal with the ancient design of the current swagger
software and was thinking of just rewriting it in Scala, for scala. I may
have to let that idea go though because I don't have much time to commit to
this. When I do get some time, I will likely join in on helping with
whatever you've come up with by then.
…On Fri, Aug 17, 2018 at 3:27 PM, sean-kim-zocdoc ***@***.***> wrote:
@rbiersbach <https://github.com/rbiersbach> I was planning on getting to
this around late September so if you can get this started now, that would
be great!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABef4F5SwZqh3APPxFSi94Zd7-vpHnHwks5uRzUqgaJpZM4S2RgN>
.
|
Ok guess I will start implementing the server generator for akka http now. |
hello @rbiersbach , for OAS 3.0 we're working on https://github.com/swagger-api/swagger-codegen-generators repo. Pleae, let me know if you have any doubt/question, you can reach me on https://gitter.im/swagger-api/swagger-codegen |
Just to keep u guys up to date: |
A first version of the akka http server codegen has been merged to the master.
|
Hello, what is the status of this issue? |
I only did work for the server generator, so I guess work for the client is welcome :) |
Ok, I opened the PR, let me know if it's ok or if I should change some things. |
I intend to implement both the server and client side for akka-http, soonish, as I have time available. I'm aware of the various Scala support in the 2.0 project but none of it is based on the right technologies for our purposes. I will, however, endeavor to layer it so that Scala based code generation can be done in multiple ways. That is, I will factor in the request in swagger-codegen issue 3812. This ticket will effectively provide a 3.0 implementation for swagger-codegen issue 5900 .
I welcome all discussion here about combining efforts to create server and client generators that support reactive programming. Mostly they both need to be asynchronous non-blocking systems that implement backflow via Akka Streams. If I'm duplicating work (haven't seen it yet), please let me know!
The text was updated successfully, but these errors were encountered: