@@ -35,10 +35,10 @@ func getPathFromFirstElement(cbs []ConfigBuilder) string {
3535// BuildDocs marshals the OAS struct to YAML and saves it to the chosen output file.
3636//
3737// Returns an error if there is any.
38- func (o * OAS ) BuildDocs (conf ... ConfigBuilder ) error {
39- o .initCallStackForRoutes ()
38+ func (oas * OAS ) BuildDocs (conf ... ConfigBuilder ) error {
39+ oas .initCallStackForRoutes ()
4040
41- yml , err := o .marshalToYAML ()
41+ yml , err := oas .marshalToYAML ()
4242 if err != nil {
4343 return fmt .Errorf ("marshaling issue occurred: %w" , err )
4444 }
@@ -54,8 +54,8 @@ func (o *OAS) BuildDocs(conf ...ConfigBuilder) error {
5454// BuildStream marshals the OAS struct to YAML and writes it to a stream.
5555//
5656// Returns an error if there is any.
57- func (o * OAS ) BuildStream (w io.Writer ) error {
58- yml , err := o .marshalToYAML ()
57+ func (oas * OAS ) BuildStream (w io.Writer ) error {
58+ yml , err := oas .marshalToYAML ()
5959 if err != nil {
6060 return fmt .Errorf ("marshaling issue occurred: %w" , err )
6161 }
@@ -127,17 +127,17 @@ type hybridOAS struct {
127127 Components componentsMap `yaml:"components"`
128128}
129129
130- func (o * OAS ) transformToHybridOAS () hybridOAS {
130+ func (oas * OAS ) transformToHybridOAS () hybridOAS {
131131 ho := hybridOAS {}
132132
133- ho .OpenAPI = o .OASVersion
134- ho .Info = o .Info
135- ho .ExternalDocs = o .ExternalDocs
136- ho .Servers = o .Servers
137- ho .Tags = o .Tags
133+ ho .OpenAPI = oas .OASVersion
134+ ho .Info = oas .Info
135+ ho .ExternalDocs = oas .ExternalDocs
136+ ho .Servers = oas .Servers
137+ ho .Tags = oas .Tags
138138
139- ho .Paths = makeAllPathsMap (& o .Paths )
140- ho .Components = makeComponentsMap (& o .Components )
139+ ho .Paths = makeAllPathsMap (& oas .Paths )
140+ ho .Components = makeComponentsMap (& oas .Components )
141141
142142 return ho
143143}
0 commit comments