Skip to content

Commit

Permalink
Used a better API for string comparison
Browse files Browse the repository at this point in the history
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
  • Loading branch information
fazledyn-or committed Dec 21, 2023
1 parent ab13479 commit 25ff75e
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 25ff75e

Please sign in to comment.