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] List in type alias has unnecessary parentheses #8151

Closed
andys8 opened this issue May 7, 2018 · 1 comment
Closed

[Elm] List in type alias has unnecessary parentheses #8151

andys8 opened this issue May 7, 2018 · 1 comment

Comments

@andys8
Copy link

andys8 commented May 7, 2018

Description

A field in a type alias has always parentheses, which are not necessary.

type alias MyEntity =
    { id : Maybe Int
    , elements : (List Element)
    }

should be

type alias MyEntity =
    { id : Maybe Int
    , elements : List Element
    }
Swagger-codegen version

2.3.1

Suggest a fix/enhancement

This is the line where the parentheses are hardcoded.

{ {{#vars}}{{^-first}} , {{/-first}}{{name}} : {{^required}}Maybe {{/required}}{{#isContainer}}(List {{/isContainer}}{{#isEnum}}{{nameInCamelCase}}{{/isEnum}}{{^isEnum}}{{datatype}}{{/isEnum}}{{#isContainer}}){{/isContainer}}

@andys8
Copy link
Author

andys8 commented Aug 26, 2018

Should be solved with OpenAPITools/openapi-generator#661 (comment)

@andys8 andys8 closed this as completed Aug 26, 2018
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