clarify room and sensor

trunk
HeNine 2 years ago
parent 1e1d4d13d5
commit 7ed8633f40

@ -15,6 +15,6 @@ entity
items: types.id, items: types.id,
description: 'List of variables measured by sensor.', description: 'List of variables measured by sensor.',
uniqueItems: true, uniqueItems: true,
} },
} },
} }

@ -12,15 +12,14 @@ entity
properties+: { properties+: {
location: types.location, location: types.location,
relationships: { relationships: {
type: 'array', type: 'object',
description: 'Relationships that bind other entities to this room.', description: 'Relationships that bind other entities to this room.',
items: { properties: {
oneOf: [ id: type.id,
{ args: {
'$ref': 'https://picc.app/schemata/v0.1-dev/relationship', type: 'array',
}, items: type.id,
$.properties.id, },
],
}, },
}, },
}, },

Loading…
Cancel
Save