swagger
swagger copied to clipboard
Unexported fields should not appear in model and model schema in docs
We have a struct like this:
Base struct {
private int
}
Another struct {
Base
Id int `json:"id"`
...
}
This results in model like this:
bitbucket.org.aintuapps.api-go-poc.models.Another {
id (int, optional): ,
private (int, optional): ,
...
}
As far as I can tell the member 'private' should not appear in documentation because it is not exported, i.e. json marshaling would not see it.