From 3c76d90156d576c319f2d3ea9cf0d22af753445e Mon Sep 17 00:00:00 2001 From: Anton Averchenkov <84287187+averche@users.noreply.github.com> Date: Fri, 21 Apr 2023 13:04:12 -0400 Subject: [PATCH] Small fixes for OpenAPI display attributes (#20285) --- builtin/credential/approle/path_login.go | 2 +- builtin/credential/aws/path_config_rotate_root.go | 2 +- builtin/credential/aws/path_login.go | 2 +- builtin/credential/cert/path_login.go | 2 +- builtin/credential/github/path_login.go | 2 +- builtin/credential/ldap/path_login.go | 2 +- builtin/credential/okta/path_login.go | 2 +- builtin/credential/radius/path_login.go | 2 +- builtin/credential/userpass/path_login.go | 2 +- changelog/20285.txt | 3 +++ 10 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 changelog/20285.txt diff --git a/builtin/credential/approle/path_login.go b/builtin/credential/approle/path_login.go index 14bd3e775..a4c4fe82c 100644 --- a/builtin/credential/approle/path_login.go +++ b/builtin/credential/approle/path_login.go @@ -21,7 +21,7 @@ func pathLogin(b *backend) *framework.Path { Pattern: "login$", DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixAppRole, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ "role_id": { diff --git a/builtin/credential/aws/path_config_rotate_root.go b/builtin/credential/aws/path_config_rotate_root.go index 8fbf2ad64..141b7e2fb 100644 --- a/builtin/credential/aws/path_config_rotate_root.go +++ b/builtin/credential/aws/path_config_rotate_root.go @@ -27,7 +27,7 @@ func (b *backend) pathConfigRotateRoot() *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixAWS, OperationVerb: "rotate", - OperationSuffix: "auth-root-credentials", + OperationSuffix: "root-credentials", }, Operations: map[logical.Operation]framework.OperationHandler{ diff --git a/builtin/credential/aws/path_login.go b/builtin/credential/aws/path_login.go index 258f58452..f4041b38d 100644 --- a/builtin/credential/aws/path_login.go +++ b/builtin/credential/aws/path_login.go @@ -57,7 +57,7 @@ func (b *backend) pathLogin() *framework.Path { Pattern: "login$", DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixAWS, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ "role": { diff --git a/builtin/credential/cert/path_login.go b/builtin/credential/cert/path_login.go index 1aa7a1084..d59c5b4a9 100644 --- a/builtin/credential/cert/path_login.go +++ b/builtin/credential/cert/path_login.go @@ -38,7 +38,7 @@ func pathLogin(b *backend) *framework.Path { Pattern: "login", DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixCert, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ "name": { diff --git a/builtin/credential/github/path_login.go b/builtin/credential/github/path_login.go index 748b24a2b..4ee94e5d5 100644 --- a/builtin/credential/github/path_login.go +++ b/builtin/credential/github/path_login.go @@ -22,7 +22,7 @@ func pathLogin(b *backend) *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixGithub, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ diff --git a/builtin/credential/ldap/path_login.go b/builtin/credential/ldap/path_login.go index 964c51591..440e72539 100644 --- a/builtin/credential/ldap/path_login.go +++ b/builtin/credential/ldap/path_login.go @@ -19,7 +19,7 @@ func pathLogin(b *backend) *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixLDAP, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ diff --git a/builtin/credential/okta/path_login.go b/builtin/credential/okta/path_login.go index e4ce56b07..1f2cb090a 100644 --- a/builtin/credential/okta/path_login.go +++ b/builtin/credential/okta/path_login.go @@ -26,7 +26,7 @@ func pathLogin(b *backend) *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixOkta, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ diff --git a/builtin/credential/radius/path_login.go b/builtin/credential/radius/path_login.go index c442d796a..6feaf1bfc 100644 --- a/builtin/credential/radius/path_login.go +++ b/builtin/credential/radius/path_login.go @@ -26,7 +26,7 @@ func pathLogin(b *backend) *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixRadius, - OperationVerb: "log-in", + OperationVerb: "login", OperationSuffix: "|with-username", }, diff --git a/builtin/credential/userpass/path_login.go b/builtin/credential/userpass/path_login.go index 9eef6136f..056586447 100644 --- a/builtin/credential/userpass/path_login.go +++ b/builtin/credential/userpass/path_login.go @@ -22,7 +22,7 @@ func pathLogin(b *backend) *framework.Path { DisplayAttrs: &framework.DisplayAttributes{ OperationPrefix: operationPrefixUserpass, - OperationVerb: "log-in", + OperationVerb: "login", }, Fields: map[string]*framework.FieldSchema{ diff --git a/changelog/20285.txt b/changelog/20285.txt new file mode 100644 index 000000000..2bc2241df --- /dev/null +++ b/changelog/20285.txt @@ -0,0 +1,3 @@ +```release-note:bug +openapi: Small fixes for OpenAPI display attributes. Changed "log-in" to "login" +```