Skip to content

Commit

Permalink
updates per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alkalinecoffee committed Apr 16, 2024
1 parent 82c51cb commit 99e8b3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/openrpc/device.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 10 additions & 3 deletions src/openrpc/display.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down Expand Up @@ -191,7 +198,7 @@
}
],
"result": {
"name": "resolution",
"name": "HDR profiles",
"summary": "An array of valid HDR profiles that the display supports.",
"schema": {
"type": "array",
Expand Down

0 comments on commit 99e8b3b

Please sign in to comment.