-
Notifications
You must be signed in to change notification settings - Fork 6k
First beta release of Erlang client generator #6502
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
Conversation
@tsloughter thanks for the new generator. To modify to create another path-related mustache variable, you want want to follow scalatra approach to do it in the postProcessOperations using vendor extensions: https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ScalatraServerCodegen.java#L124 |
@wing328 thanks, I'll take a look at the scalatra approach today. |
@tsloughter Please run "bin/erlang-petstore-client.sh" and include the samples in this PR. Please also create "bin/windows/erlang-petstore-client.bat" for Windows users as well. |
Added. Still a number of things I need to or want to do. I'll try to put a list in here tomorrow of what I think needs to be done. |
@tsloughter shall we release the Erlang client generator as alpha/beta so as to collect feedbacks from the community? |
Hey, maybe wait a couple days? I forgot to put together that list I said I would... I'd like to get that and a few small things changed. |
And I mean that I'll hopefully get time to finish those things and figure out what else needs to be done within a couple days, but that if I don't then merging it is also fine at that point to get it moving along and in an alpha state :) |
I pushed some updates. It doesn't yet handle produces types correctly, just always passing the body for the default response to a json decoder. This should be easy to clean up by adding a helper module that takes the Content-Type and the body. I also want to add arguments for passing authentication to api calls that need it. Or might just add a |
@tsloughter thanks for the update. I'll take a look this weekend and let you know if I've any feedback. |
return input.replace("*/", "*_/").replace("/*", "/_*"); | ||
} | ||
|
||
class ExtendedCodegenOperation extends CodegenOperation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsloughter Do we still need this Extended class after using vendor extensions to stored the customized path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yea, probably. Will clean it up. More might have got left like that because of how I copied the module from another implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or no, not so simple, would have to look closer at how ExtendedCodegenOperation
is used in postProcessOperations
because that is still needed, maybe it can just be replaced with CodegenOperation
but just doing that naively and running it didn't compile, so I'll need to look more later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsloughter that's ok. Let's keep it for now.
@tsloughter I would suggest doing a alpha release and start engaging other Erlang developers to review and enhance it. |
UPDATE:
|
* master: (101 commits) [Swift4] Allow for custom dateformatter to be used (swagger-api#6672) [haskell-http-client] fix bug when generating models-only (swagger-api#6931) fix typo: crediential => credential minor typo fix [csharp] fix enum serialization of first value (swagger-api#6873) [PHP] Improve docs and README (swagger-api#6935) Binary mode for file deserialization in python (swagger-api#6936) add python tornado test to travis [Python/tornado] add integration tests and fix bugs (swagger-api#6925) Fix PHP passes response body to ApiException (swagger-api#6923) [TypeScript][Node] Resolve TS2532 error (swagger-api#6932) skip "all" shell script minor formatting change Fixes Issue swagger-api#6841, Map for accessing additionalProperties is generated. (swagger-api#6886) add tsloughter as owner erlang WIP: initial commit for Erlang client generator (swagger-api#6502) add back php client test Switch Travis image from MacOS to Linux (swagger-api#6937) add link to ebook [Scala] Default case class Option types to None for non-required fields (swagger-api#6790) ...
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
.3.0.0
branch for breaking (non-backward compatible) changes.Description of the PR
When it is reading this resolves #3816