Skip to content

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

@zyz9740

Description

@zyz9740

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions