-
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
[Elm] Add Elm client generator #6947
Conversation
Related discussion in Reddit: https://www.reddit.com/r/elm/comments/7d7jwq/swagger_codegen_for_elm/ |
This is the initial Codegen for Elm 0.18. Please try it out and provide feedback. Not yet supported: * path variables; * additionalProperties; * authentication; * recursive types.
As discussed, let's merge this into master as a beta release so as to collect more feedback from Elm developers. |
I've created to #7224 to track the enhancements. |
Tweet to promote the new generator: https://twitter.com/wing328/status/943494382203715584 |
* master: move bvwells to go tech comm update current stable version in readme skip push snapshot to avoid error comment out checkstyle in circleci pom.xml comment out check style plugin Revert "update version to 2.4.0-SNAPSHOT" update ci config to install codegen locally update doc to 2.3.0 update version to 2.4.0-SNAPSHOT update version to 2.3.0 fix net35 with JsonSubTypes (swagger-api#7043) [Javascript] Set ES5 as default (swagger-api#7239) swagger-api#7201: Take the modelPropertyNaming property into account again (swagger-api#7202) add trenneman as elm creator add bvwells to go technical committee Video "Building an API with Swagger" (swagger-api#7237) [Akka-Scala] This is a fix to a bug introduced by this PR swagger-api#7172 (swagger-api#7228) Add Elm language - BETA (swagger-api#6947) bump stack resolver to lts-10.0 (swagger-api#7221)
This is really great, thanks guys! Managed to parse the FHIR API specification, which is pretty huge. |
@trenneman What a great PR. It looks very promising. I started to look into it. I found smaller issues and opened issues for them. The changes are addressing formatting issues and refer to |
Thanks @andys8. Adhering to |
I'm not planning to file PRs for now. So they're free to be picked up. I want to dig more into swagger codegen in the future. |
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 changes related to OpenAPI spec 3.0. Default:master
.Description of the PR
This is a work-in-progress, but @wing328 suggested me to open this PR in an early stage for feedback and support.
This PR adds support for the elm-lang. I'm already testing it on a ~2000 lines swagger-file and the basics are already working. What follows is a (mutable) TODO list:
additionalProperties
/Dict
s;Date
/DateTime
;ByteArray
/Binary
;Int
andFloat
;Try minimizing/removing dependencies (elm-decode-pipeline
,elm-date-extra
);Most of them are quite Elm-specific, but for example the vendor extensions I use are just needed to define some decoder/encoder name. This feels kinda hacky, but I am not sure how to do so correctly. Please let me know whether I am the right track.