Skip to content

Generate file(s) per api-operation #5233

@fatsu

Description

@fatsu
Description

We are currently using swagger-codegen to generate custom typescript for an Angular application which uses ngrx/store & ngrx/effects.

Besides the regular api related stuff, the custom generated typescript includes per operation (among other things) an effect-class and actionCreator-class.

These are currently included in the api-template/file, but it would be nice to have them separately: be able to generate file(s) per api-operation.

e.g.:

/api/xxxApi/xxxApi.ts
/api/xxxApi/operations/aaa.effect.ts
/api/xxxApi/operations/aaa.actions.ts
/api/xxxApi/operations/bbb.effect.ts
/api/xxxApi/operations/bbb.actions.ts
/api/yyyApi/yyyApi.ts
/api/yyyApi/operations/aaa.effect.ts
/api/yyyApi/operations/aaa.actions.ts

Swagger-codegen version

2.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions