Skip to content

Commit

Permalink
Include replace as a keyword for PUT HTTP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
praneetloke committed Mar 10, 2024
1 parent 5c3ebeb commit b53df73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resource_naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func getResourceTitleFromOperationID(originalOperationID, method string, isSepar
case http.MethodPost:
replaceKeywords = append(replaceKeywords, "add", "create", "post", "put", "set")
case http.MethodPut:
replaceKeywords = append(replaceKeywords, "add", "create", "put", "set", "update")
replaceKeywords = append(replaceKeywords, "add", "create", "put", "set", "update", "replace")
}

result := originalOperationID
Expand Down

0 comments on commit b53df73

Please sign in to comment.