Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #1378
Closed
Open
Issue created Nov 05, 2018 by Administrator@rootContributor

[Elm] import 'Data.List_' not used, but causing an error

Created by: Stealthmate

Description

I'm generating an API from haskell's servant-swagger, where an endpoint returns a type QueryResponse which is an object with two array fields. The output file for this a module Data.QueryResponse, which has the import line

import Data.List_ as List_ exposing (List_)

however, List_ is not used anywhere in the file. On top of that, Elm doesn't recognize any module like that, and from what I've found there isn't one.

openapi-generator version

3.3.2, built from source from current master

OpenAPI declaration file content or url

gist

Command line used for generation

openapi-generator-cli.sh generate -i "http://localhost:8080/swagger.json" -l elm -o ./api

Steps to reproduce

Just execute the above command on a host that serves the file

Related issues/PRs

I tried looking for similar issues, but didn't find anything.

Suggest a fix/enhancement

I'm not really sure, but I think just simply not importing List_ would do the trick.

Assignee
Assign to
Time tracking