Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions interface/schemata/device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ properties:
menu_groups:
$ref: "#/$defs/menu_groups"
additionalProperties: false
required:
- slot
- access_scopes
- default_scope

$defs:
access_scopes:
Expand All @@ -126,15 +130,15 @@ $defs:
type: array
items:
$ref: "#/$defs/access_scope"
uniqueItems: true

default_scope:
title: Default Scope
description: |
The default scope for the device.
Objects in the model will have this access scope unless overridden
explicitly, or implicitly by inheritance
type: string
default: ""
$ref: "#/$defs/access_scopes_enum"

slot:
title: Slot
Expand Down Expand Up @@ -1344,14 +1348,22 @@ $defs:
description: Recommended UI widget to use for the parameter
type: string

access_scopes_enum:
title: Access Scopes Enum
description: |
The set of access scopes recognized by ST 2138.
type: string
enum: [st2138:mon, st2138:op, st2138:cfg, st2138:adm]

access_scope:
title: Access Scope
description: |
The parameter's access scope. If not present, the parameter's parent's
access scope is used unless the parameter is a top-level one, in which
case the device's default access scope is used.
type: string
enum: [st2138:mon, st2138:op, st2138:cfg, st2138:adm]
anyOf:
- $ref: "#/$defs/access_scopes_enum"
- type: string

client_hints:
title: Client Hints
Expand Down
Loading