Skip to content

Commit 8314d86

Browse files
committed
🎨 Fixed linting issues.
1 parent 9d019d9 commit 8314d86

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func walkFilepath(pathToTraverse string, walker walkerFn) ([]string, error) {
105105

106106
func (o *OAS) mapDocAnnotations(path string) error {
107107
if o == nil {
108-
return errors.New("pointer to OASHandlers can not be nil") // fixme: migrate to validator!
108+
return errors.New("pointer to OASHandlers can not be nil")
109109
}
110110

111111
f, err := os.Open(path)

annotations_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ func TestUnitMapAnnotationsInPath(t *testing.T) {
1515

1616
o := prepForInitCallStack(t, false)
1717

18-
// TODO: Finish this test.
1918
_ = o.MapAnnotationsInPath(examplesDir)
2019
}
2120

build.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func writeAndFlush(yml []byte, outYAML io.Writer) error {
9696
return nil
9797
}
9898

99-
// TODO: Should I add hash linked list maps support?
10099
type (
101100
pathsMap map[string]methodsMap
102101
componentsMap map[string]interface{}

caller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import (
55
"reflect"
66
)
77

8-
// FIXME: Complete file needs attention.
9-
108
func (o *OAS) Call(name string, params ...interface{}) (result []reflect.Value, err error) {
119
f := reflect.ValueOf(o.RegisteredRoutes[name])
1210
paramNum := len(params)

models.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ type RequestBody struct {
8686
Description string `yaml:"description"`
8787
Content ContentTypes `yaml:"content"`
8888
Required bool `yaml:"required"`
89-
// TODO: Further develop/research.
9089
}
9190

9291
type ContentTypes []ContentType
@@ -144,7 +143,7 @@ type SchemaProperty struct {
144143

145144
type SecuritySchemes []SecurityScheme
146145

147-
type SecurityScheme struct { // TODO: Lots of variants, yet to be researched.
146+
type SecurityScheme struct {
148147
Name string `yaml:"name,omitempty"`
149148
Type string `yaml:"type,omitempty"`
150149
In string `yaml:"in,omitempty"`

0 commit comments

Comments
 (0)