From ec73bd8d19b845488258d961200e3dbcbc1580f6 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Fri, 21 Feb 2025 14:55:43 +0100 Subject: [PATCH] Fix OpenAPI examples Signed-off-by: yubiuser --- src/api/docs/content/specs/info.yaml | 16 ++++++++-------- src/api/docs/content/specs/queries.yaml | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/api/docs/content/specs/info.yaml b/src/api/docs/content/specs/info.yaml index 6be2b1acd..27ce15578 100644 --- a/src/api/docs/content/specs/info.yaml +++ b/src/api/docs/content/specs/info.yaml @@ -532,7 +532,7 @@ components: value: 40.0 max: null crit: null - path: "temp1" + sensor: "temp1" - name: "nct6793" path: "hwmon2" source: "devices/platform/nct6775.656" @@ -541,12 +541,12 @@ components: value: 59.5 max: null crit: null - path: "temp1" + sensor: "temp1" - name: CPUTIN value: 40.0 max: null crit: null - path: "temp2" + sensor: "temp2" - name: "k10temp" path: "hwmon3" source: "devices/pci0000:00/0000:00:18.3" @@ -555,12 +555,12 @@ components: value: 58.875 max: 70.0 crit: null - path: "temp1" + sensor: "temp1" - name: "Tctl" value: 58.875 max: null crit: null - path: "temp2" + sensor: "temp2" - name: "coretemp" path: "hwmon4" source: "devices/platform/coretemp.0" @@ -569,17 +569,17 @@ components: value: 48.0 max: 100.0 crit: 100.0 - path: "temp1" + sensor: "temp1" - name: "Core 0" value: 48.0 max: 100.0 crit: 100.0 - path: "temp2" + sensor: "temp2" - name: "Core 1" value: 47.0 max: 100.0 crit: 100.0 - path: "temp3" + sensor: "temp3" cpu_temp: type: number description: CPU temperature (best guess, may be *null* if no sensor can be reliably identified, please report if you encounter this) diff --git a/src/api/docs/content/specs/queries.yaml b/src/api/docs/content/specs/queries.yaml index aa7df5e63..b349b34e1 100644 --- a/src/api/docs/content/specs/queries.yaml +++ b/src/api/docs/content/specs/queries.yaml @@ -250,7 +250,7 @@ components: time: 19 list_id: NULL upstream: "localhost#5353" - dbid: 112421354 + id: 112421354 ede: code: 0 text: null @@ -268,7 +268,7 @@ components: time: 12.3 list_id: NULL upstream: "localhost#5353" - dbid: 112421355 + id: 112421355 ede: code: 0 text: null