You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
The fields disappear it I explicitly disable them with a json tag:
// TestStruct Test Struct
type TestStruct struct {
tableName struct{} `json:"-"`
anotherField string `json:"-"`
ID uint64 `json:"-"`
Name string `json:"name"`
Age int `json:"age"`
}
PS
Point me in the right direction, and I may get some time to submit a PR
The text was updated successfully, but these errors were encountered:
Describe the bug
If I have not-exported fields on a struct, it gets exported as a json example. It should stay hidden
To Reproduce
If you have this code:
We get the struct TestStruct with example :
Expected behavior
we should get:
Screenshots
Your swag version
Your go version
Additional context
The fields disappear it I explicitly disable them with a json tag:
PS
Point me in the right direction, and I may get some time to submit a PR
The text was updated successfully, but these errors were encountered: