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

Add struct annotation to avoid certain structs being processed as Models #1705

Open
juampiq6 opened this issue Nov 16, 2023 · 0 comments
Open

Comments

@juampiq6
Copy link

For a larger scale API, that only wants to expose certain models to swagger, it's neccessary to be able to exclude certain structs so that they dont get parsed nor showed in the final Swagger doc.

I propose a simple annotation in a struct, comment just like @Description, this would be @Ignore or @Exclude

// This annotation would enable to omit this struct from being parsed
// @Exclude/@Ignore
type Foo struct {
	Bar        string 
	Blob      int
}
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