Skip to content

Commit a1af2d6

Browse files
committed
Add source field back to origin as this scopes the subject
1 parent a8955c5 commit a1af2d6

22 files changed

+106
-15
lines changed

internal/events/schemas/domain/letter.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@
2828
"description": "The domain which requested this letter",
2929
"type": "string"
3030
},
31+
"source": {
32+
"title": "Event source",
33+
"description": "The source of the event which created this letter",
34+
"type": "string"
35+
},
3136
"subject": {
3237
"title": "Event subject",
33-
"description": "The subject of the event which created this letter",
38+
"description": "The subject of the event which created this letter, scoped to source",
3439
"type": "string"
3540
},
3641
"event": {
@@ -41,6 +46,7 @@
4146
},
4247
"required": [
4348
"domain",
49+
"source",
4450
"subject",
4551
"event"
4652
]

internal/events/schemas/events/letter.ACCEPTED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.CANCELLED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.DELIVERED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.DISPATCHED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.ENCLOSED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.FAILED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.FORWARDED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.PENDING.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

internal/events/schemas/events/letter.PRINTED.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@
111111
"description": "The domain which requested this letter",
112112
"type": "string"
113113
},
114+
"source": {
115+
"title": "Event source",
116+
"description": "The source of the event which created this letter",
117+
"type": "string"
118+
},
114119
"subject": {
115120
"title": "Event subject",
116-
"description": "The subject of the event which created this letter",
121+
"description": "The subject of the event which created this letter, scoped to source",
117122
"type": "string"
118123
},
119124
"event": {
@@ -124,6 +129,7 @@
124129
},
125130
"required": [
126131
"domain",
132+
"source",
127133
"subject",
128134
"event"
129135
]

0 commit comments

Comments
 (0)