Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zyz9740 opened this issue Apr 17, 2023 · 0 comments
Open

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

zyz9740 opened this issue Apr 17, 2023 · 0 comments

Comments

@zyz9740
Copy link

zyz9740 commented Apr 17, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant