Skip to content

Commit

Permalink
Add OIDC and identity to initialisms (#107)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RedbackThomson authored Jun 25, 2021
1 parent 9c35918 commit 4b8891c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/names/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
{"Ids", "IDs", "ids", nil},
// Need to prevent "Identifier" from becoming "IDentifier",
// and "Idle" from becoming "IDle"
{"Id", "ID", "id", regexp.MustCompile("Id(?!entifier|le)", regexp.None)},
{"Id", "ID", "id", regexp.MustCompile("Id(?!entifier|le|entity)", regexp.None)},
// Need to prevent "DbInstance" from becoming "dbinstance" when lower
// prefix-converted (should be dbInstance). Amazingly, even within just
// the RDS API, there are fields named "DbiResourceId",
Expand Down Expand Up @@ -98,6 +98,7 @@ var (
{"Kms", "KMS", "kms", nil},
{"Ldap", "LDAP", "ldap", nil},
{"Mfa", "MFA", "mfa", nil},
{"Oidc", "OIDC", "oidc", nil},
{"Sdk", "SDK", "sdk", nil},
{"Sha256", "SHA256", "sha256", nil},
{"Sqs", "SQS", "sns", nil},
Expand Down

0 comments on commit 4b8891c

Please sign in to comment.