Is there any option to use Drizzle InferSelectModel value for annotating swagger response
As you can see in the screenshots, I'm trying to reuse the drizzle infer models for the swagger response
Since the infer model is based of type I was not able to annotate it for swagger. Is there any alternative or easiest way to achieve this?
6 Replies
i think you need to do typeof before. i could be wrong though
that's not the solution
It wants the javascript object itself, not the typescript type, you can try putting
Again no luck
what does it say?