lparkes / swagger-codegen-generators

Apache License 2.0
0 stars 0 forks source link

[Go] json tags are used at random #17

Open lparkes opened 1 year ago

lparkes commented 1 year ago

For some reason many types are marked up with tags for JSON marshaling even though they aren't ever exported. I should probably just clean the code up and get rid of them.

e.g.

// Configuration provides all of the information needed to configure
// an APIClient.
type Configuration struct {
    BasePath      string            `json:"basePath,omitempty"`
    Host          string            `json:"host,omitempty"`
    Scheme        string            `json:"scheme,omitempty"`
    DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
    UserAgent     string            `json:"userAgent,omitempty"`
    HTTPClient    *http.Client
}