Replies: 1 comment 1 reply
-
For the record, I build a system hook in the Open Api Factory, to add the type (aggregations) I need. If some people are interested, I can write a blog post about it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an endpoint
GET /articles
, And I want to ship more data than just thearticles. For example, I want to ship some aggregations, the max price, the
lowest price, etc. Example (see the last bits):
I used to do this with a data provider, a DTO, and a Normalizer. But now I want
to expose also the type of the extra data (aggregations, stats, etc) to the
consumer of the API (auto generation of the the typescript client).
And I would like to avoid to fill manually all the types in an extension of the
Swagger Normalizer.
Have you already faced this problem? How did you solve it?
Beta Was this translation helpful? Give feedback.
All reactions