From 7c8a9bb7f2936baee62491d72a9a64baabb6936e Mon Sep 17 00:00:00 2001
From: Samuel-Zacharie FAURE
Date: Thu, 28 May 2026 11:50:57 +0200
Subject: [PATCH] feat: improve dataservice OpenAPI response viewer
- move each field's example below its description
- darken description text and tree-node borders for contrast
- add per-node collapse/expand with a global "Ouvrir tout / Fermer tout"
control, defaulting to fully expanded
API-6768
---
components/OpenApi/OpenApiProperties.vue | 86 +++++++++++++++++++-----
components/OpenApi/OpenApiProperty.vue | 56 +++++++++++----
components/OpenApi/openApiCollapse.ts | 8 +++
3 files changed, 119 insertions(+), 31 deletions(-)
create mode 100644 components/OpenApi/openApiCollapse.ts
diff --git a/components/OpenApi/OpenApiProperties.vue b/components/OpenApi/OpenApiProperties.vue
index 7b126f043..605982b55 100644
--- a/components/OpenApi/OpenApiProperties.vue
+++ b/components/OpenApi/OpenApiProperties.vue
@@ -11,23 +11,43 @@
>
{{ $t('Aucune réponse documentée dans le swagger.') }}
-
-
- {{ endpoint.summary || endpoint.path }}
-
-
-
-
+
+
+
+ {{ $t('Ouvrir tout') }}
+
+
+ {{ $t('Fermer tout') }}
+
+
+
+
+ {{ endpoint.summary || endpoint.path }}
+
+
+
+
+
@@ -39,10 +59,12 @@
diff --git a/components/OpenApi/OpenApiProperty.vue b/components/OpenApi/OpenApiProperty.vue
index eee34d689..cfe3c8f79 100644
--- a/components/OpenApi/OpenApiProperty.vue
+++ b/components/OpenApi/OpenApiProperty.vue
@@ -1,14 +1,26 @@
-
-
- {{ title || name }}
-
+
+
- {{ $t('Ex : {example}', { example: String(example) }) }}
+ {{ title || name }}
@@ -22,13 +34,20 @@
+
+ {{ $t('Ex : {example}', { example: String(example) }) }}
+
+
{{ $t('Cette propriété contient 1 ou plusieurs éléments ayant les spécifications suivantes :') }}
@@ -56,8 +75,10 @@