-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.md.template
74 lines (51 loc) · 2.16 KB
/
README.md.template
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
This repository contains the schemas for events, payloads and definitions.
**NOTE:** Do not modify this README.md file directly, it's a compiled file. Please modify the README.md.template and execute ``python build_docs.py > README.md``.
# Event, payload and definitions schemas
* [`Event schema`](#reference-event-schema) (root object `event`)
* [`Payload schema: Relation`](#reference-payload-relation-schema) (nested object under `event["payload"]`)
* [`Payload schema: object`](#reference-payload-object-schema) (nested object under `event["payload"]`)
* [`Payload definitions`](#reference-payload-definitions-schema) (Object definitions used in payloads)
---------------------------------------
<a name="reference-event-schema"></a>
## Event schema
Schema of the event message.
**Properties**
| |Type|Description|Required|
|---|----|-----------|--------|
{% for k, v in event.items() -%}
| **{{ k }}** | {{ v['type'] }} | {{ v['description'] }} | {{ v['required'] }} |
{% endfor %}
Additional properties are allowed.
<a name="reference-payload-relation-schema"></a>
## Payload schema: Relation
Schema of the relation payload.
**Properties**
| |Type|Description|Required|
|---|----|-----------|--------|
{% for k, v in relation.items() -%}
| **{{k}}** | {{v['type']}} | {{v['description']}} | {{v['required']}} |
{% endfor %}
Additional properties are allowed.
<a name="reference-payload-object-schema"></a>
## Payload schema: Object
Schema of the object payload.
**Properties**
| |Type|Description|Required|
|---|----|-----------|--------|
{% for k, v in object.items() -%}
| **{{k}}** | {{v['type']}} | {{v['description']}} | {{v['required']}} |
{% endfor %}
Additional properties are allowed.
<a name="reference-payload-definitions-schema"></a>
## Payload definitions
Schemas of smaller structured objects used within other payload.
**Available ``definitions``**
{% for def_k, def_v in definitions.items() -%}
### Definition: ``{{def_k}}``
<a name="definition-{{def_k}}"></a>
| |Type|Description|Required|
|---|----|-----------|--------|
{% for k, v in def_v.items() -%}
| **{{k}}** | {{v['type']}} | {{v['description']}} | {{v['required']}} |
{% endfor %}
{% endfor %}