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

swaggerignore in documentation #863

Closed
kurianCoding opened this issue Jan 1, 2021 · 2 comments
Closed

swaggerignore in documentation #863

kurianCoding opened this issue Jan 1, 2021 · 2 comments

Comments

@kurianCoding
Copy link

kurianCoding commented Jan 1, 2021

StructFeild type json:"feildname" swaggerignore:"true"

will hide this field in swagger ui, please include this in documentation

@ubogdan
Copy link
Contributor

ubogdan commented Jan 2, 2021

Well, have you read it? README.MD

@ubogdan ubogdan closed this as completed Jan 2, 2021
@leonardogazio
Copy link

No condition on that tag? What if I need to use the same struct e.g;

{
    Id int
    Description string
}

For POST I don't want Swagger to show "Id" field, but the same struct is used by other GET endpoints. What about;
swaggerignore:"true,(http method == POST)"

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

3 participants