Skip to content

Commit adfb963

Browse files
authored
[objc] fix documentation of API authorization in README files (#15347)
fix hierarchy level + align wording across generators
1 parent 55e9f66 commit adfb963

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

modules/openapi-generator/src/main/resources/objc/README.mustache

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

119119
## Documentation For Authorization
120120

121-
{{^authMethods}} All endpoints do not require authorization.
122-
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
123-
{{#authMethods}}## {{{name}}}
121+
{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
122+
{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
123+
{{#authMethods}}
124+
### {{{name}}}
124125

125126
{{#isApiKey}}- **Type**: API key
126127
- **API key parameter name**: {{{keyParamName}}}

samples/client/petstore/objc/core-data/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,14 @@ Class | Method | HTTP request | Description
123123
## Documentation For Authorization
124124
125125
126-
## api_key
126+
Authentication schemes defined for the API:
127+
### api_key
127128
128129
- **Type**: API key
129130
- **API key parameter name**: api_key
130131
- **Location**: HTTP header
131132
132-
## petstore_auth
133+
### petstore_auth
133134
134135
- **Type**: OAuth
135136
- **Flow**: implicit

samples/client/petstore/objc/default/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,14 @@ Class | Method | HTTP request | Description
123123
## Documentation For Authorization
124124
125125
126-
## api_key
126+
Authentication schemes defined for the API:
127+
### api_key
127128
128129
- **Type**: API key
129130
- **API key parameter name**: api_key
130131
- **Location**: HTTP header
131132
132-
## petstore_auth
133+
### petstore_auth
133134
134135
- **Type**: OAuth
135136
- **Flow**: implicit

0 commit comments

Comments
 (0)