Skip to content

Commit

Permalink
Updated paths_kebab_case name in schema
Browse files Browse the repository at this point in the history
It was wrong, from a copy pasta error
  • Loading branch information
daveshanley committed Jul 19, 2022
1 parent ac2452e commit 2bdc188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/openapi/paths_kebab_case.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type PathsKebabCase struct {

// GetSchema returns a model.RuleFunctionSchema defining the schema of the VerbsInPath rule.
func (vp PathsKebabCase) GetSchema() model.RuleFunctionSchema {
return model.RuleFunctionSchema{Name: "noVerbsInPath"}
return model.RuleFunctionSchema{Name: "pathsKebabCase"}
}

// RunRule will execute the PathsKebabCase rule, based on supplied context and a supplied []*yaml.Node slice.
Expand Down
2 changes: 1 addition & 1 deletion functions/openapi/paths_kebab_case_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func TestPathsKebabCase_GetSchema(t *testing.T) {
def := PathsKebabCase{}
assert.Equal(t, "noVerbsInPath", def.GetSchema().Name)
assert.Equal(t, "pathsKebabCase", def.GetSchema().Name)
}

func TestPathsKebabCase_RunRule(t *testing.T) {
Expand Down

0 comments on commit 2bdc188

Please sign in to comment.