From 58bf737f3efb4f6747a3ce68b29d7dd29b0cc102 Mon Sep 17 00:00:00 2001 From: Udartsev Anatoliy <36189347+Anatoliy057@users.noreply.github.com> Date: Tue, 21 Nov 2023 01:33:13 +0300 Subject: [PATCH] Add to templates support operationId as links (#38) --- openapidocs/mk/v3/views_markdown/partial/path-items.html | 3 +++ openapidocs/mk/v3/views_mkdocs/partial/path-items.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/openapidocs/mk/v3/views_markdown/partial/path-items.html b/openapidocs/mk/v3/views_markdown/partial/path-items.html index f309b34..25388af 100644 --- a/openapidocs/mk/v3/views_markdown/partial/path-items.html +++ b/openapidocs/mk/v3/views_markdown/partial/path-items.html @@ -6,6 +6,9 @@ {%- for http_method, operation in definition.items() %} ### {{http_method.upper()}} {{path | safe}} +{%- if "operationId" in operation -%} + +{%- endif -%} {% if "summary" in operation -%} {{operation.summary | wordwrap(80)}} {%- endif -%} diff --git a/openapidocs/mk/v3/views_mkdocs/partial/path-items.html b/openapidocs/mk/v3/views_mkdocs/partial/path-items.html index 3f47cca..fed1c24 100644 --- a/openapidocs/mk/v3/views_mkdocs/partial/path-items.html +++ b/openapidocs/mk/v3/views_mkdocs/partial/path-items.html @@ -6,6 +6,9 @@
### {{http_method.upper()}} {{path | route | safe}} +{%- if "operationId" in operation -%} + +{%- endif -%} {% if "summary" in operation -%} {{operation.summary | wordwrap(80)}} {%- endif -%}