Skip to content

Commit 82c82b2

Browse files
fixed linting
1 parent f3c866f commit 82c82b2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tools/cli/internal/openapi/filter/filter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func TestDefaultFilters(t *testing.T) {
112112
metadata := &Metadata{}
113113
filters := DefaultFilters(doc, metadata)
114114

115-
assert.Len(t, filters, 7)
115+
assert.Len(t, filters, 8)
116116
}
117117

118118
func TestFiltersWithoutVersioning(t *testing.T) {

tools/cli/internal/openapi/filter/schemas.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ type SchemasFilter struct {
2727
oas *openapi3.T
2828
}
2929

30-
func (f *SchemasFilter) ValidateMetadata() error {
31-
//TODO implement me
32-
panic("implement me")
30+
func (*SchemasFilter) ValidateMetadata() error {
31+
return nil
3332
}
3433

3534
func (f *SchemasFilter) Apply() error {
@@ -56,7 +55,7 @@ func (f *SchemasFilter) Apply() error {
5655
return nil
5756
}
5857

59-
// findRefs returns all the ref included in an openapi spec
58+
// findRefs returns all the ref included in an openapi spec.
6059
func findRefs(oas *openapi3.T) map[string]bool {
6160
if oas == nil {
6261
return nil
@@ -91,7 +90,6 @@ func findRefs(oas *openapi3.T) map[string]bool {
9190
}
9291
}
9392
}
94-
9593
}
9694

9795
return refs

0 commit comments

Comments
 (0)