fizz icon indicating copy to clipboard operation
fizz copied to clipboard

Do we have method to not show all struct in param and return type ?

Open zyz9740 opened this issue 1 year ago • 0 comments

For example, I have a function with such signature

type NodePatchParam struct {
	ID uint `path:"id"`
	models.Node
}

func PatchNode(c *gin.Context, nodePatchParam *NodePatchParam) (*NodeResponse, error)

So the schemas in generated spec will show many schemas, including NodePatchParam and NodeResponse. What if I don't want to show these types ? How to omit these types ?

zyz9740 avatar Apr 17 '23 08:04 zyz9740