Skip to content

Commit

Permalink
Merge pull request #441 from fazledyn-or/Fix_String_Matching_API
Browse files Browse the repository at this point in the history
Use better API for string comparison
  • Loading branch information
k8s-ci-robot authored Jan 3, 2024
2 parents eec4567 + 25ff75e commit a58d4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/generators/rules/names_match.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func namesMatch(goName, jsonName string) bool {
if !isAllowedName(goName) || !isAllowedName(jsonName) {
return false
}
if strings.ToLower(goName) != strings.ToLower(jsonName) {
if !strings.EqualFold(goName, jsonName) {
return false
}
// Go field names must be CamelCase. JSON field names must be camelCase.
Expand Down

0 comments on commit a58d4e6

Please sign in to comment.