Skip to content

Commit 4b8891c

Browse files
Add OIDC and identity to initialisms (#107)
Description of changes: - Add OIDC as an accepted initialism - Prevent "Identity" from being incorrectly capitalised By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 9c35918 commit 4b8891c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/names/names.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var (
4646
{"Ids", "IDs", "ids", nil},
4747
// Need to prevent "Identifier" from becoming "IDentifier",
4848
// and "Idle" from becoming "IDle"
49-
{"Id", "ID", "id", regexp.MustCompile("Id(?!entifier|le)", regexp.None)},
49+
{"Id", "ID", "id", regexp.MustCompile("Id(?!entifier|le|entity)", regexp.None)},
5050
// Need to prevent "DbInstance" from becoming "dbinstance" when lower
5151
// prefix-converted (should be dbInstance). Amazingly, even within just
5252
// the RDS API, there are fields named "DbiResourceId",
@@ -98,6 +98,7 @@ var (
9898
{"Kms", "KMS", "kms", nil},
9999
{"Ldap", "LDAP", "ldap", nil},
100100
{"Mfa", "MFA", "mfa", nil},
101+
{"Oidc", "OIDC", "oidc", nil},
101102
{"Sdk", "SDK", "sdk", nil},
102103
{"Sha256", "SHA256", "sha256", nil},
103104
{"Sqs", "SQS", "sns", nil},

0 commit comments

Comments
 (0)