Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

OpenAPI annotation support for DTO types #71

Open
thejhh opened this issue May 20, 2023 · 0 comments
Open

OpenAPI annotation support for DTO types #71

thejhh opened this issue May 20, 2023 · 0 comments
Labels
api REST API related openapi OpenAPI related request Request API related

Comments

@thejhh
Copy link
Contributor

thejhh commented May 20, 2023

Our DTOs are currently just pure TypeScript interfaces.

This is simple approach, but makes it quite hard to automatically detect the type of the DTO for example automatically documenting using the OpenAPI.

We should investigate ways to fix this issue. Maybe we should implement class based approach to write DTO classes? Then, those classes could use annotations which could document the DTO using OpenAPI.

@thejhh thejhh added openapi OpenAPI related request Request API related api REST API related labels May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api REST API related openapi OpenAPI related request Request API related
Projects
None yet
Development

No branches or pull requests

1 participant