Skip to content

Commit 93dc19c

Browse files
committed
1 parent 8850ba7 commit 93dc19c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

internal/inflection/singular.go

+5
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,10 @@ func Singular(s SingularParams) string {
4343
if strings.ToLower(s.Name) == "waves" {
4444
return "wave"
4545
}
46+
47+
if strings.ToLower(s.Name) == "metadata" {
48+
return "metadata"
49+
}
50+
4651
return upstream.Singular(s.Name)
4752
}

internal/reserved.go

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ func IsReserved(s string) bool {
5959
return true
6060
case "var":
6161
return true
62+
case "q":
63+
return true
6264
default:
6365
return false
6466
}

0 commit comments

Comments
 (0)