Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Jan 20, 2025
1 parent 8850ba7 commit 93dc19c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/inflection/singular.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ func Singular(s SingularParams) string {
if strings.ToLower(s.Name) == "waves" {
return "wave"
}

if strings.ToLower(s.Name) == "metadata" {
return "metadata"
}

return upstream.Singular(s.Name)
}
2 changes: 2 additions & 0 deletions internal/reserved.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func IsReserved(s string) bool {
return true
case "var":
return true
case "q":
return true
default:
return false
}
Expand Down

0 comments on commit 93dc19c

Please sign in to comment.