Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
...@@ -33,6 +33,23 @@ ...@@ -33,6 +33,23 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"type": "integer",
"description": "Expiration Unix timestamp in seconds.",
"minimum": 0
},
{
"const": -1,
"description": "The key exists but has no associated expiration time."
},
{
"const": -2,
"description": "The key does not exist."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
"NOSCRIPT", "NOSCRIPT",
"STALE" "STALE"
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "target", "name": "target",
......
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "Return value depends on the function that is executed"
}
} }
} }
...@@ -60,6 +60,9 @@ ...@@ -60,6 +60,9 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "Return value depends on the function that is executed"
}
} }
} }
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "flush-type", "name": "flush-type",
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "flush-type", "name": "flush-type",
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
"name": "library-name", "name": "library-name",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
], ],
"acl_categories": [ "acl_categories": [
"SCRIPTING" "SCRIPTING"
] ],
"reply_schema": {
"description": "the serialized payload",
"type": "string"
}
} }
} }
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
} }
] ]
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -13,6 +13,13 @@ ...@@ -13,6 +13,13 @@
], ],
"acl_categories": [ "acl_categories": [
"SCRIPTING" "SCRIPTING"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
"command_tips": [ "command_tips": [
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ONE_SUCCEEDED" "RESPONSE_POLICY:ONE_SUCCEEDED"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -16,6 +16,59 @@ ...@@ -16,6 +16,59 @@
"acl_categories": [ "acl_categories": [
"SCRIPTING" "SCRIPTING"
], ],
"reply_schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"library_name": {
"description": " the name of the library",
"type": "string"
},
"engine": {
"description": "the engine of the library",
"type": "string"
},
"functions": {
"description": "the list of functions in the library",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "the name of the function",
"type": "string"
},
"description": {
"description": "the function's description",
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
]
},
"flags": {
"description": "an array of function flags",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"library_code": {
"description": "the library's source code (when given the WITHCODE modifier)",
"type": "string"
}
}
}
},
"arguments": [ "arguments": [
{ {
"name": "library-name-pattern", "name": "library-name-pattern",
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
"name": "function-code", "name": "function-code",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"description": "The library name that was loaded",
"type": "string"
}
} }
} }
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
} }
] ]
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -18,6 +18,64 @@ ...@@ -18,6 +18,64 @@
"NONDETERMINISTIC_OUTPUT", "NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
] ],
"reply_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"running_script": {
"description": "information about the running script.",
"oneOf": [
{
"description": "If there's no in-flight function",
"type": "null"
},
{
"description": "a map with the information about the running script",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "the name of the function.",
"type": "string"
},
"command": {
"description": "the command and arguments used for invoking the function.",
"type": "array",
"items": {
"type": "string"
}
},
"duration_ms": {
"description": "the function's runtime duration in milliseconds.",
"type": "integer"
}
}
}
]
},
"engines": {
"description": "A map when each entry in the map represent a single engine.",
"type": "object",
"patternProperties": {
"^.*$": {
"description": "Engine map contains statistics about the engine",
"type": "object",
"additionalProperties": false,
"properties": {
"libraries_count": {
"description": "number of libraries",
"type": "integer"
},
"functions_count": {
"description": "number of functions",
"type": "integer"
}
}
}
}
}
}
}
} }
} }
...@@ -89,6 +89,10 @@ ...@@ -89,6 +89,10 @@
} }
] ]
} }
] ],
"reply_schema": {
"description": "When used without optional arguments, the number of elements added to the sorted set (excluding score updates). If the CH option is specified, the number of elements that were changed (added or updated).",
"type": "integer"
}
} }
} }
...@@ -73,6 +73,19 @@ ...@@ -73,6 +73,19 @@
} }
] ]
} }
] ],
"reply_schema": {
"oneOf": [
{
"description": "one or both of elements are missing",
"type": "null"
},
{
"description": "distance as a double (represented as a string) in the specified units",
"type": "string",
"pattern": "^[0-9]*(.[0-9]*)?$"
}
]
}
} }
} }
...@@ -44,6 +44,13 @@ ...@@ -44,6 +44,13 @@
"multiple": true, "multiple": true,
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "An array where each element is the Geohash corresponding to each member name passed as argument to the command.",
"type": "array",
"items": {
"type": "string"
}
}
} }
} }
...@@ -44,6 +44,33 @@ ...@@ -44,6 +44,33 @@
"multiple": true, "multiple": true,
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "An array where each element is a two elements array representing longitude and latitude (x,y) of each member name passed as argument to the command",
"type": "array",
"items": {
"oneOf": [
{
"description": "Element does not exist",
"type": "null"
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Latitude (x)",
"type": "number"
},
{
"description": "Longitude (y)",
"type": "number"
}
]
}
]
}
}
} }
} }
...@@ -201,6 +201,65 @@ ...@@ -201,6 +201,65 @@
"key_spec_index": 2, "key_spec_index": 2,
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "Array of matched members information",
"anyOf": [
{
"description": "If no WITH* option is specified, array of matched members names",
"type": "array",
"items": {
"description": "name",
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": [
{
"description": "Matched member name",
"type": "string"
}
],
"additionalItems": {
"oneOf": [
{
"description": "If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",
"type": "string"
},
{
"description": "If WITHHASH option is specified, the geohash integer",
"type": "integer"
},
{
"description": "If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "latitude (x)",
"type": "number"
},
{
"description": "longitude (y)",
"type": "number"
}
]
}
]
}
}
},
{
"description": "number of items stored in key",
"type": "integer"
}
]
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment