From 99e8b3b7818a0b8228191c9d765f003adf837115 Mon Sep 17 00:00:00 2001 From: alkalinecoffee Date: Thu, 11 Apr 2024 12:54:34 -0400 Subject: [PATCH] updates per feedback --- src/openrpc/device.json | 4 ++-- src/openrpc/display.json | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/openrpc/device.json b/src/openrpc/device.json index 5db4834b6..5d918fd29 100644 --- a/src/openrpc/device.json +++ b/src/openrpc/device.json @@ -770,13 +770,13 @@ { "name": "capabilities", "x-uses": [ - "xrn:firebolt:capability:display:info" + "xrn:firebolt:capability:device:info" ] } ], "params": [], "result": { - "name": "resolution", + "name": "resolutions", "summary": "An array of valid resolutions that the device supports", "schema": { "type": "array", diff --git a/src/openrpc/display.json b/src/openrpc/display.json index 6751b3808..51e3d1ccb 100644 --- a/src/openrpc/display.json +++ b/src/openrpc/display.json @@ -98,7 +98,7 @@ }, { "name": "optimalResolution", - "summary": "Get the optimal resolution of the display device. This value is provided from the HDMI EDID.", + "summary": "Get the optimal resolution of the display device. This will return null if no display is present.", "tags": [ { "name": "capabilities", @@ -112,7 +112,14 @@ "name": "resolution", "summary": "Optional resolution of the display device.", "schema": { - "$ref": "#/components/schemas/DisplayResolution" + "anyOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/DisplayResolution" + } + ] } }, "examples": [ @@ -191,7 +198,7 @@ } ], "result": { - "name": "resolution", + "name": "HDR profiles", "summary": "An array of valid HDR profiles that the display supports.", "schema": { "type": "array",