-
Notifications
You must be signed in to change notification settings - Fork 22
/
stream_msg_get_response.json
93 lines (93 loc) · 2.44 KB
/
stream_msg_get_response.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://nats.io/schemas/jetstream/api/v1/stream_msg_get_response.json",
"description": "A response from the JetStream $JS.API.STREAM.MSG.GET API",
"title": "io.nats.jetstream.api.v1.stream_msg_get_response",
"type": "object",
"required": [
"type"
],
"oneOf": [
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "integer",
"description": "HTTP like error code in the 300 to 500 range",
"minimum": 300,
"maximum": 699
},
"description": {
"type": "string",
"description": "A human friendly description of the error"
},
"err_code": {
"type": "integer",
"description": "The NATS error code unique to each kind of error",
"minimum": 0,
"maximum": 65535
}
}
}
}
},
{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"seq",
"data",
"time"
],
"properties": {
"subject": {
"type": "string",
"description": "The subject the message was originally received on",
"minLength": 1
},
"seq": {
"type": "integer",
"description": "The sequence number of the message in the Stream",
"minimum": 0
},
"data": {
"type": "string",
"description": "The base64 encoded payload of the message body",
"minLength": 0
},
"time": {
"type": "string",
"description": "The time the message was received"
},
"hdrs": {
"type": "string",
"description": "Base64 encoded headers for the message"
}
}
}
}
}
],
"properties": {
"type": {
"type": "string",
"const": "io.nats.jetstream.api.v1.stream_msg_get_response"
}
}
}