Skip to content

Commit 91eabd8

Browse files
vrongmealactions-user
authored andcommitted
sync protos
GitOrigin-RevId: a8eef6dbf4f59f3d69d0404185ed26d8aeb5fbde
1 parent d502908 commit 91eabd8

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

s2/v1/openapi.json

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,19 @@
20762076
}
20772077
}
20782078
},
2079+
"PingEventData": {
2080+
"type": "object",
2081+
"required": [
2082+
"timestamp"
2083+
],
2084+
"properties": {
2085+
"timestamp": {
2086+
"type": "integer",
2087+
"format": "int32",
2088+
"minimum": 0
2089+
}
2090+
}
2091+
},
20792092
"ReadBatch": {
20802093
"type": "object",
20812094
"required": [
@@ -2097,14 +2110,22 @@
20972110
"title": "batch",
20982111
"required": [
20992112
"event",
2100-
"data"
2113+
"data",
2114+
"id"
21012115
],
21022116
"properties": {
21032117
"data": {
21042118
"$ref": "#/components/schemas/ReadBatch"
21052119
},
21062120
"event": {
2107-
"type": "string"
2121+
"type": "string",
2122+
"enum": [
2123+
"batch"
2124+
]
2125+
},
2126+
"id": {
2127+
"type": "string",
2128+
"pattern": "^[0-9]+,[0-9]+,[0-9]+$"
21082129
}
21092130
}
21102131
},
@@ -2120,7 +2141,10 @@
21202141
"type": "string"
21212142
},
21222143
"event": {
2123-
"type": "string"
2144+
"type": "string",
2145+
"enum": [
2146+
"error"
2147+
]
21242148
}
21252149
}
21262150
},
@@ -2133,10 +2157,13 @@
21332157
],
21342158
"properties": {
21352159
"data": {
2136-
"type": "string"
2160+
"$ref": "#/components/schemas/PingEventData"
21372161
},
21382162
"event": {
2139-
"type": "string"
2163+
"type": "string",
2164+
"enum": [
2165+
"ping"
2166+
]
21402167
}
21412168
}
21422169
}

0 commit comments

Comments
 (0)