Skip to content

Better handling of different types in Elm generator#1100

Merged
wing328 merged 2 commits intomasterfrom
elm-enhance1
Oct 1, 2018
Merged

Better handling of different types in Elm generator#1100
wing328 merged 2 commits intomasterfrom
elm-enhance1

Conversation

@wing328
Copy link
Member

@wing328 wing328 commented Sep 25, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./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\.
  • Filed the PR against the correct branch: master, 3.3.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

To fix #1079

cc @trenneman

Copy link
Contributor

@eriktim eriktim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add the String.fromBool alternative

@wing328
Copy link
Member Author

wing328 commented Sep 25, 2018

@trenneman thanks for the feedback. Please feel free to submit a PR to elm-enhance1 to fix those issues. I'm no expert in Elm but just wanted to submit a PR for #1079 to kick-start the fix.

@wing328 wing328 added this to the 3.3.0 milestone Sep 25, 2018
@eriktim
Copy link
Contributor

eriktim commented Sep 25, 2018

My fix is ready. I had to rebase on #1104, so I'll wait for that one to get merged.

@wing328
Copy link
Member Author

wing328 commented Sep 25, 2018

👌

@eriktim
Copy link
Contributor

eriktim commented Sep 29, 2018

@wing328 I've updated the PR. Can you verify?

@wing328
Copy link
Member Author

wing328 commented Oct 1, 2018

👍 Let's merge this PR so that we can include the enhancement in the 3.3.0 release.

@wing328 wing328 merged commit 755dfe5 into master Oct 1, 2018
@wing328 wing328 deleted the elm-enhance1 branch October 3, 2018 09:49
A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
* better handling of different types in elm generator

* [elm] Fix toString for special cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update paramToString in Elm generator to handle other types

2 participants