Skip to content

[typescript-angular] Missing import #11745

Open
@jeanbisutti

Description

@jeanbisutti
Description

Bug: missing import in the generated Typescript service

Swagger-codegen version

Bug reproduced at versions 2.4.9 and 3.0.33

Swagger declaration file content or url

JSON available here

Command line used for generation
java -jar swagger-codegen-cli-3.0.33.jar generate -i "model.json" -o "generated" -l typescript-angular
Steps to reproduce

Execute the command line above with this model.json

The generated api/userMapReturnController.service file needs an additional import to compile:

import {User} from "../model/user";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions