-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignal.schema.yaml
42 lines (42 loc) · 1.28 KB
/
signal.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%YAML 1.2
---
title: "Signal Schema"
description: "Schema for defining the signal with their sources and optional routes"
type: "object"
properties:
sources:
type: "array"
description: "A list of sources"
items:
type: "object"
properties:
source_id:
type: "string"
description: "The unique identifier for the source"
id:
type: "string"
description: "The specific ID for the asset in the source"
routes:
type: "array"
description: "Optional list of routes for signals"
items:
type: "object"
properties:
signal_id:
type: "string"
description: "The ID of the signal output (B) that will be used in combination with the source output (A) in a calculation (A op B)"
operation:
type: "string"
enum: ["*", "+", "-", "/"]
description: "The mathematical operation to apply between the source output (A) and the signal value (B)"
required:
- signal_id
- operation
additionalProperties: false
required:
- source_id
- id
additionalProperties: false
required:
- sources
additionalProperties: false