Skip to content
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] Description conversion to function comment can be improved #8152

Open
andys8 opened this issue May 7, 2018 · 0 comments
Open

[Elm] Description conversion to function comment can be improved #8152

andys8 opened this issue May 7, 2018 · 0 comments

Comments

@andys8
Copy link

andys8 commented May 7, 2018

Description

Comments describing a function or declaration start with {-| instead of {-. They belong to the next declaration.

{-| Representation of fast immutable arrays. You can create arrays of integers
(`Array Int`) or strings (`Array String`) or any other type of value you can
dream up.
-}
type Array a = Array

https://github.com/elm-lang/core/blob/5.1.1/src/Array.elm#L39-L43

The codegen will generate this (including newlines) instead (the | character is missing):

{-
   My description
-}

and if there is no description at all, the output will be a comment with no content. Instead the comment should be omitted.

{-

-}


Swagger-codegen version

2.3.1

Suggest a fix/enhancement

The parentheses are hardcoded. There could be more occurrences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant