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

Unexported fields should not appear in model and model schema in docs #91

Open
zasran opened this issue Sep 11, 2015 · 0 comments
Open

Comments

@zasran
Copy link
Contributor

zasran commented Sep 11, 2015

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.

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