Skip to content

Commit 17cc743

Browse files
committed
chore: linting code (#1533)
* chore: make fmt * chore: make lint
1 parent d76b289 commit 17cc743

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

field_parser.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const (
2121
swaggerTypeTag = "swaggertype"
2222
swaggerIgnoreTag = "swaggerignore"
2323
)
24+
2425
var _ FieldParser = &tagBaseFieldParser{}
2526

2627
var _ FieldParser = &tagBaseFieldParser{}

field_parserv3.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,21 +464,21 @@ func (sf *structFieldV3) parseValidTags(validTag string) {
464464
}
465465
}
466466

467-
func (field *structFieldV3) parseEnumTags(enumTag string) error {
468-
enumType := field.schemaType
469-
if field.schemaType == ARRAY {
470-
enumType = field.arrayType
467+
func (sf *structFieldV3) parseEnumTags(enumTag string) error {
468+
enumType := sf.schemaType
469+
if sf.schemaType == ARRAY {
470+
enumType = sf.arrayType
471471
}
472472

473-
field.enums = nil
473+
sf.enums = nil
474474

475475
for _, e := range strings.Split(enumTag, ",") {
476476
value, err := defineType(enumType, e)
477477
if err != nil {
478478
return err
479479
}
480480

481-
field.enums = append(field.enums, value)
481+
sf.enums = append(sf.enums, value)
482482
}
483483

484484
return nil

0 commit comments

Comments
 (0)