-
Notifications
You must be signed in to change notification settings - Fork 3
/
pubsub_spec.json
78 lines (78 loc) · 2.09 KB
/
pubsub_spec.json
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
75
76
77
78
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://example.com/product.schema.json",
"type": "object",
"definitions": {
"iddef": {
"type": "string",
"minLength": 1
},
"specversiondef": {
"type": "string",
"minLength": 1
},
"endpointuridef": {
"type": [
"string",
"null"
],
"format": "uri-reference",
"minLength": 1
},
"urilocationdef": {
"type": [
"string",
"null"
],
"format": "uri-reference",
"minLength": 1
},
"resourceaddressdef": {
"type": "string",
"pattern": "([^/]+(/{2,}[^/]+)?)",
"minLength": 1
}
},
"properties": {
"id": {
"description": "Identifies the subscription and publisher.",
"$ref": "#/definitions/iddef",
"examples": [
"789be75d-7ac3-472e-bbbc-6d62878aad4a"
]
},
"specversion": {
"description": "The version of the cloud native events (CNE) specification which the event uses.",
"$ref": "#/definitions/specversiondef",
"examples": [
"1.0"
]
},
"resourceaddress": {
"description": "The resource address specifies the event producer with a hierarchical path.",
"$ref": "#/definitions/resourceaddressdef",
"examples": [
"1.0"
]
},
"endpointuri": {
"description": "Endpoint URI (a.k.a callback URI), e.g. http://localhost:8080/resourcestatus/ptp",
"$ref": "#/definitions/endpointuridef",
"examples": [
"http://localhost:8080/ptp/alert"
]
},
"urilocation": {
"description": "The url location to fetch subscription/producer information.",
"$ref": "#/definitions/urilocationdef",
"examples": [
"http://localhost:9090/api/cne/subscription/789be75d-7ac3-472e-bbbc-6d62878aad4a"
]
}
},
"required": [
"resourceaddress",
"endpointuri"
],
"additionalProperties": false
}