You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to add a predefined type objects already defined in a Typescript file to render it for the POST body request via the comments? Similar feature is present in "gin-swagger" but that is for golang, I thought that kind of feature should also be added here.
Any ideas on it? @kevinccbsg@wbw20@ciprian1234@meabed
Like below is the comment I want to write which should generate the type defined (here Activity is a Schema type object):
/**
* POST /activity/add
* @param {Activity} request.body.required - Activity type
**/
or just an additional line like this in the existing defined comments: @schema Activity activity_description
Has anyone figured out a way to work around this? I have types from a shared folder that aren't in a *.d.ts file. I was really hoping to just do as @RadientBrain suggested.
* @param {Activity} request.body.required - Activity type
How to add a predefined type objects already defined in a Typescript file to render it for the POST body request via the comments? Similar feature is present in "gin-swagger" but that is for golang, I thought that kind of feature should also be added here.
Any ideas on it? @kevinccbsg @wbw20 @ciprian1234 @meabed
Like below is the comment I want to write which should generate the type defined (here
Activity
is a Schema type object):or just an additional line like this in the existing defined comments:
@schema Activity activity_description
The
Activity
type is defined as follows:So, at last it should generate the whole Activity Schema without me defining each and every detail of the type again into the comments.
The text was updated successfully, but these errors were encountered: