We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe687b commit 6b3feb5Copy full SHA for 6b3feb5
functions/openapi/operation_tag_defined_test.go
@@ -23,7 +23,9 @@ func TestOperd_GetSchema(t *testing.T) {
23
24
func TestTagDefined_RunRule(t *testing.T) {
25
def := TagDefined{}
26
- res := def.RunRule(nil, model.RuleFunctionContext{})
+ context := model.RuleFunctionContext{}
27
+ context.Index = index.NewSpecIndexWithConfig(nil, index.CreateOpenAPIIndexConfig())
28
+ res := def.RunRule(nil, context)
29
assert.Len(t, res, 0)
30
}
31
0 commit comments