From 4697710a6292605d196989850fd59f1f3dbcc247 Mon Sep 17 00:00:00 2001 From: Freek van Rijt Date: Mon, 15 Apr 2024 14:45:03 +0200 Subject: [PATCH] fix(open-api): fix example rendering "value" key if summary or description not set --- .../components/global/OpenApiExample.vue | 32 +++++++------------ .../components/global/OpenApiResponses.vue | 25 ++++----------- 2 files changed, 18 insertions(+), 39 deletions(-) diff --git a/src/.vuepress/theme/client/components/global/OpenApiExample.vue b/src/.vuepress/theme/client/components/global/OpenApiExample.vue index 36e40aa2..0086ba2b 100644 --- a/src/.vuepress/theme/client/components/global/OpenApiExample.vue +++ b/src/.vuepress/theme/client/components/global/OpenApiExample.vue @@ -1,34 +1,28 @@ diff --git a/src/.vuepress/theme/client/components/global/OpenApiResponses.vue b/src/.vuepress/theme/client/components/global/OpenApiResponses.vue index d7efaa44..0570c252 100644 --- a/src/.vuepress/theme/client/components/global/OpenApiResponses.vue +++ b/src/.vuepress/theme/client/components/global/OpenApiResponses.vue @@ -29,15 +29,7 @@ :key="`example${type}`" title="Example response" tag="strong"> - - + - - + @@ -67,6 +53,7 @@ import {computed, type ComputedRef} from 'vue'; import {type OpenAPIV3_1 as OpenApiType} from 'openapi-types'; import {isReponseObject} from '@mptheme/client/utils/openApiGuards'; import OpenApiSchema from './OpenApiSchema.vue'; +import OpenApiExample from './OpenApiExample.vue'; import Http from './Http.vue'; import DetailsExpand from './DetailsExpand.vue'; import CodeGroup from './CodeGroup.vue';