Skip to content

Commit 2b19d5f

Browse files
authored
[Ruby] fix documentation of API authorization in README files (#15353)
align wording across generators
1 parent e32da0e commit 2b19d5f

7 files changed

Lines changed: 10 additions & 5 deletions

File tree

modules/openapi-generator/src/main/resources/ruby-client/README.mustache

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ Class | Method | HTTP request | Description
128128

129129
## Documentation for Authorization
130130

131-
{{^authMethods}} All endpoints do not require authorization.
132-
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
133-
{{#authMethods}}### {{name}}
131+
{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
132+
{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
133+
{{#authMethods}}
134+
### {{name}}
134135

135136
{{#isApiKey}}
136137

samples/client/petstore/ruby-autoload/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
173173
## Documentation for Authorization
174174

175175

176+
Authentication schemes defined for the API:
176177
### petstore_auth
177178

178179

samples/client/petstore/ruby-faraday/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
173173
## Documentation for Authorization
174174

175175

176+
Authentication schemes defined for the API:
176177
### petstore_auth
177178

178179

samples/client/petstore/ruby/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
173173
## Documentation for Authorization
174174

175175

176+
Authentication schemes defined for the API:
176177
### petstore_auth
177178

178179

samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Class | Method | HTTP request | Description
100100
## Documentation for Authorization
101101

102102

103+
Authentication schemes defined for the API:
103104
### api_key
104105

105106

samples/openapi3/client/features/dynamic-servers/ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ Class | Method | HTTP request | Description
8484

8585
## Documentation for Authorization
8686

87-
All endpoints do not require authorization.
87+
Endpoints do not require authorization.
8888

samples/openapi3/client/features/generate-alias-as-model/ruby-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ Class | Method | HTTP request | Description
8989

9090
## Documentation for Authorization
9191

92-
All endpoints do not require authorization.
92+
Endpoints do not require authorization.
9393

0 commit comments

Comments
 (0)