From adfb9638316a7b6512e773f66a8c62aa2909a665 Mon Sep 17 00:00:00 2001 From: Tiffany Marrel Date: Tue, 9 May 2023 08:23:19 +0200 Subject: [PATCH] [objc] fix documentation of API authorization in README files (#15347) fix hierarchy level + align wording across generators --- .../src/main/resources/objc/README.mustache | 7 ++++--- samples/client/petstore/objc/core-data/README.md | 5 +++-- samples/client/petstore/objc/default/README.md | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/objc/README.mustache b/modules/openapi-generator/src/main/resources/objc/README.mustache index 824bfe1f228..52f91c3f669 100644 --- a/modules/openapi-generator/src/main/resources/objc/README.mustache +++ b/modules/openapi-generator/src/main/resources/objc/README.mustache @@ -118,9 +118,10 @@ Class | Method | HTTP request | Description ## Documentation For Authorization -{{^authMethods}} All endpoints do not require authorization. -{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}} -{{#authMethods}}## {{{name}}} +{{^authMethods}}Endpoints do not require authorization.{{/authMethods}} +{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}} +{{#authMethods}} +### {{{name}}} {{#isApiKey}}- **Type**: API key - **API key parameter name**: {{{keyParamName}}} diff --git a/samples/client/petstore/objc/core-data/README.md b/samples/client/petstore/objc/core-data/README.md index e5367df54d4..3adaedd6385 100644 --- a/samples/client/petstore/objc/core-data/README.md +++ b/samples/client/petstore/objc/core-data/README.md @@ -123,13 +123,14 @@ Class | Method | HTTP request | Description ## Documentation For Authorization -## api_key +Authentication schemes defined for the API: +### api_key - **Type**: API key - **API key parameter name**: api_key - **Location**: HTTP header -## petstore_auth +### petstore_auth - **Type**: OAuth - **Flow**: implicit diff --git a/samples/client/petstore/objc/default/README.md b/samples/client/petstore/objc/default/README.md index e5367df54d4..3adaedd6385 100644 --- a/samples/client/petstore/objc/default/README.md +++ b/samples/client/petstore/objc/default/README.md @@ -123,13 +123,14 @@ Class | Method | HTTP request | Description ## Documentation For Authorization -## api_key +Authentication schemes defined for the API: +### api_key - **Type**: API key - **API key parameter name**: api_key - **Location**: HTTP header -## petstore_auth +### petstore_auth - **Type**: OAuth - **Flow**: implicit