From ba8ca1e7ac129a92ee82cf592b6ea4245d308824 Mon Sep 17 00:00:00 2001 From: Tiffany Marrel Date: Tue, 9 May 2023 08:07:50 +0200 Subject: [PATCH] [R] fix documentation of API authorization in README files (#15354) align wording across generators --- .../openapi-generator/src/main/resources/r/README.mustache | 7 ++++--- samples/client/petstore/R-httr2-wrapper/README.md | 1 + samples/client/petstore/R-httr2/README.md | 1 + samples/client/petstore/R/README.md | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/r/README.mustache b/modules/openapi-generator/src/main/resources/r/README.mustache index 961894a3f2f3..57d455864c16 100644 --- a/modules/openapi-generator/src/main/resources/r/README.mustache +++ b/modules/openapi-generator/src/main/resources/r/README.mustache @@ -90,9 +90,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 diff --git a/samples/client/petstore/R-httr2-wrapper/README.md b/samples/client/petstore/R-httr2-wrapper/README.md index 52a64392dd7c..792f1c20248f 100644 --- a/samples/client/petstore/R-httr2-wrapper/README.md +++ b/samples/client/petstore/R-httr2-wrapper/README.md @@ -134,6 +134,7 @@ Class | Method | HTTP request | Description ## Documentation for Authorization +Authentication schemes defined for the API: ### http_auth - **Type**: HTTP basic authentication diff --git a/samples/client/petstore/R-httr2/README.md b/samples/client/petstore/R-httr2/README.md index 52a64392dd7c..792f1c20248f 100644 --- a/samples/client/petstore/R-httr2/README.md +++ b/samples/client/petstore/R-httr2/README.md @@ -134,6 +134,7 @@ Class | Method | HTTP request | Description ## Documentation for Authorization +Authentication schemes defined for the API: ### http_auth - **Type**: HTTP basic authentication diff --git a/samples/client/petstore/R/README.md b/samples/client/petstore/R/README.md index dbe87ad6dd39..b33b4f0b072d 100644 --- a/samples/client/petstore/R/README.md +++ b/samples/client/petstore/R/README.md @@ -134,6 +134,7 @@ Class | Method | HTTP request | Description ## Documentation for Authorization +Authentication schemes defined for the API: ### http_auth - **Type**: HTTP basic authentication