mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
yaml importer slopping it up
This commit is contained in:
@@ -35,12 +35,15 @@ module.exports = {
|
||||
items: strictObject({
|
||||
id: string({ description: 'Stable camera identifier used in socket requests, selections, and replay source names.', examples: ['lobby'], minLength: 1, maxLength: 80, pattern: '^[a-zA-Z0-9_-]+$' }),
|
||||
name: string({ description: 'Human-readable camera name shown in the UI.', examples: ['Lobby Camera'], minLength: 1, maxLength: 120 }),
|
||||
description: string({ description: 'Short explanation of the camera location or view shown in the UI.', examples: ['Wide shot of the staging area.'], maxLength: 500 }),
|
||||
url: string({ title: 'Snapshot URL', description: 'HTTP URL fetched when the server needs a still image from this camera.', examples: ['http://192.168.0.50/snapshot.jpg'], format: 'uri', maxLength: 2048 }),
|
||||
streamUrl: string({ title: 'Stream URL', description: 'Live stream URL consumed by the server snapshot engine and replay capture path.', examples: ['http://192.168.0.50/stream.mjpg'], maxLength: 2048 }),
|
||||
description: string({ description: 'Optional explanation of the camera location or view shown in the UI.', examples: ['Wide shot of the staging area.'], maxLength: 500 }),
|
||||
url: string({ title: 'Snapshot URL', description: 'Optional HTTP URL fetched when the server needs a still image from this camera.', examples: ['http://192.168.0.50/snapshot.jpg'], format: 'uri', maxLength: 2048 }),
|
||||
streamUrl: string({ title: 'Stream URL', description: 'Optional live stream URL consumed by the server snapshot engine and replay capture path.', examples: ['http://192.168.0.50/stream.mjpg'], maxLength: 2048 }),
|
||||
}, {
|
||||
description: 'One named room camera with its still-image and live-stream sources.',
|
||||
required: ['id', 'name', 'description', 'url', 'streamUrl'],
|
||||
// The runtime has always accepted snapshot-only and stream-only camera
|
||||
// entries, and treats descriptions as presentation metadata. Requiring
|
||||
// all three optional values made working YAML impossible to import.
|
||||
description: 'One named room camera with an optional description and any snapshot or live-stream sources it provides.',
|
||||
required: ['id', 'name'],
|
||||
}),
|
||||
},
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user