Skip to content

Commit

Permalink
Small fixes for OpenAPI display attributes (#20285)
Browse files Browse the repository at this point in the history
  • Loading branch information
averche authored Apr 21, 2023
1 parent 5e700e3 commit 0311096
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion builtin/credential/approle/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/aws/path_config_rotate_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/aws/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/cert/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/github/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/ldap/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/okta/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/radius/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func pathLogin(b *backend) *framework.Path {

DisplayAttrs: &framework.DisplayAttributes{
OperationPrefix: operationPrefixRadius,
OperationVerb: "log-in",
OperationVerb: "login",
OperationSuffix: "|with-username",
},

Expand Down
2 changes: 1 addition & 1 deletion builtin/credential/userpass/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
3 changes: 3 additions & 0 deletions changelog/20285.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
openapi: Small fixes for OpenAPI display attributes. Changed "log-in" to "login"
```

0 comments on commit 0311096

Please sign in to comment.