Skip to content

Add ability/config to generate Service classes as interfaces #431

Open
@crizo23

Description

@crizo23

First off, let me say how great this library is. We've heavily researched/implemented similar libraries such as swagger-to-ts and dtsgenerator. There are features in this library that would justify a switch.

Our use case is a bit different though; we're writing server side endpoints that auto-wire these controller/service classes automatically in a KOA framework. From the server-side perspective, I can extend the Service classes generated and write my own implementation, but what would be fantastic is if there was a config option to make these Service classes interfaces instead which defined the operation methods (from the spec). Then, I simply implement the generated Service class and I'm good to go. Other than that, we can use all other features of this library.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions