Skip to content

Commit decc889

Browse files
magnusbaeckMagnus Bäck
and
Magnus Bäck
authored
Update event schemas (#27)
This adds ActS 4.0.0, ActT 4.0.0, ArtP 3.1.0 and CD 3.1.0 from commit 951a594 of github.com/eiffel-community/eiffel. These schemas will probably be baselined in a new Agen-2 edition of Eiffel. Co-authored-by: Magnus Bäck <[email protected]>
1 parent 60e0031 commit decc889

File tree

8 files changed

+768
-8
lines changed

8 files changed

+768
-8
lines changed

eiffellib/events/eiffel_activity_started_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Axis Communications AB.
1+
# Copyright 2019-2021 Axis Communications AB.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -32,7 +32,7 @@ class EiffelActivityStartedData(EiffelBaseData):
3232
class EiffelActivityStartedEvent(EiffelBaseEvent):
3333
"""Eiffel activity started event."""
3434

35-
version = "3.0.0"
35+
version = "4.0.0"
3636

3737
def __init__(self, version=None):
3838
"""Initialize data, meta and links."""

eiffellib/events/eiffel_activity_triggered_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Axis Communications AB.
1+
# Copyright 2019-2021 Axis Communications AB.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -32,7 +32,7 @@ class EiffelActivityTriggeredData(EiffelBaseData):
3232
class EiffelActivityTriggeredEvent(EiffelBaseEvent):
3333
"""Eiffel activity triggered event."""
3434

35-
version = "3.0.0"
35+
version = "4.0.0"
3636

3737
def __init__(self, version=None):
3838
"""Initialize data, meta and links."""

eiffellib/events/eiffel_artifact_published_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Axis Communications AB.
1+
# Copyright 2019-2021 Axis Communications AB.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -32,7 +32,7 @@ class EiffelArtifactPublishedData(EiffelBaseData):
3232
class EiffelArtifactPublishedEvent(EiffelBaseEvent):
3333
"""Eiffel artifact published event."""
3434

35-
version = "3.0.0"
35+
version = "3.1.0"
3636

3737
def __init__(self, version=None):
3838
"""Initialize data, meta and links."""

eiffellib/events/eiffel_composition_defined_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Axis Communications AB.
1+
# Copyright 2019-2021 Axis Communications AB.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -32,7 +32,7 @@ class EiffelCompositionDefinedData(EiffelBaseData):
3232
class EiffelCompositionDefinedEvent(EiffelBaseEvent):
3333
"""Eiffel composition defined event."""
3434

35-
version = "3.0.0"
35+
version = "3.1.0"
3636

3737
def __init__(self, version=None):
3838
"""Initialize data, meta and links."""
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"meta": {
6+
"type": "object",
7+
"properties": {
8+
"id": {
9+
"type": "string",
10+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
11+
},
12+
"type": {
13+
"type": "string",
14+
"enum": ["EiffelActivityStartedEvent"]
15+
},
16+
"version": {
17+
"type": "string",
18+
"enum": [ "4.0.0" ],
19+
"default": "4.0.0"
20+
},
21+
"time": {
22+
"type": "integer"
23+
},
24+
"tags": {
25+
"type": "array",
26+
"items": {
27+
"type": "string"
28+
}
29+
},
30+
"source": {
31+
"type": "object",
32+
"properties": {
33+
"domainId": {
34+
"type": "string"
35+
},
36+
"host": {
37+
"type": "string"
38+
},
39+
"name": {
40+
"type": "string"
41+
},
42+
"serializer": {
43+
"type": "string",
44+
"pattern": "^pkg:"
45+
},
46+
"uri": {
47+
"type": "string"
48+
}
49+
},
50+
"additionalProperties": false
51+
},
52+
"security": {
53+
"type": "object",
54+
"properties": {
55+
"authorIdentity": {
56+
"type": "string"
57+
},
58+
"integrityProtection": {
59+
"type": "object",
60+
"properties": {
61+
"signature": {
62+
"type": "string"
63+
},
64+
"alg": {
65+
"type": "string",
66+
"enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"]
67+
},
68+
"publicKey": {
69+
"type": "string"
70+
}
71+
},
72+
"required": [
73+
"signature",
74+
"alg"
75+
],
76+
"additionalProperties": false
77+
},
78+
"sequenceProtection": {
79+
"type": "array",
80+
"items": {
81+
"type": "object",
82+
"properties": {
83+
"sequenceName": {
84+
"type": "string"
85+
},
86+
"position": {
87+
"type": "integer"
88+
}
89+
},
90+
"additionalProperties": false,
91+
"required": [
92+
"sequenceName",
93+
"position"
94+
]
95+
}
96+
}
97+
},
98+
"additionalProperties": false,
99+
"required": [
100+
"authorIdentity"
101+
]
102+
}
103+
},
104+
"required": [
105+
"id",
106+
"type",
107+
"version",
108+
"time"
109+
],
110+
"additionalProperties": false
111+
},
112+
"data": {
113+
"type": "object",
114+
"properties": {
115+
"executionUri": {
116+
"type": "string"
117+
},
118+
"liveLogs": {
119+
"type": "array",
120+
"items": {
121+
"type": "object",
122+
"properties": {
123+
"name": {
124+
"type": "string"
125+
},
126+
"uri": {
127+
"type": "string"
128+
}
129+
},
130+
"required": [
131+
"name",
132+
"uri"
133+
],
134+
"additionalProperties": false
135+
}
136+
},
137+
"customData": {
138+
"type": "array",
139+
"items": {
140+
"type": "object",
141+
"properties": {
142+
"key": {
143+
"type": "string"
144+
},
145+
"value": {
146+
}
147+
},
148+
"required": [
149+
"key",
150+
"value"
151+
],
152+
"additionalProperties": false
153+
}
154+
}
155+
},
156+
"additionalProperties": false
157+
},
158+
"links": {
159+
"type": "array",
160+
"items": {
161+
"type": "object",
162+
"properties": {
163+
"type": {
164+
"type": "string"
165+
},
166+
"target": {
167+
"type": "string",
168+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
169+
}
170+
},
171+
"required": [
172+
"type",
173+
"target"
174+
],
175+
"additionalProperties": false
176+
}
177+
}
178+
},
179+
"required": [
180+
"meta",
181+
"data",
182+
"links"
183+
],
184+
"additionalProperties": false
185+
}

0 commit comments

Comments
 (0)