Skip to content

Commit 1443dd9

Browse files
authored
[perl] fix documentation of API authorization in README files (#15356)
align wording across generators
1 parent 9cb14ae commit 1443dd9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,10 @@ Class | Method | HTTP request | Description
312312
{{/model}}{{/models}}
313313

314314
# DOCUMENTATION FOR AUTHORIZATION
315-
{{^authMethods}} All endpoints do not require authorization.
316-
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
317-
{{#authMethods}}## {{{name}}}
315+
{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
316+
{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
317+
{{#authMethods}}
318+
## {{{name}}}
318319

319320
{{#isApiKey}}- **Type**: API key
320321
- **API key parameter name**: {{{keyParamName}}}

samples/client/petstore/perl/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ Class | Method | HTTP request | Description
480480

481481
# DOCUMENTATION FOR AUTHORIZATION
482482

483+
Authentication schemes defined for the API:
483484
## petstore_auth
484485

485486
- **Type**: OAuth

0 commit comments

Comments
 (0)