Unverified Commit e2918705 authored by Ozan Tezcan's avatar Ozan Tezcan Committed by GitHub
Browse files

Fix hfe reply schemas (#13295)

In https://github.com/redis/redis/pull/13291, we've changed that hfe
commands to return empty array if the key does not exist.
Forgot to update json schemas.
parent 2f34f6f0
...@@ -36,15 +36,9 @@ ...@@ -36,15 +36,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -66,8 +60,6 @@ ...@@ -66,8 +60,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -36,15 +36,9 @@ ...@@ -36,15 +36,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -66,8 +60,6 @@ ...@@ -66,8 +60,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -35,15 +35,9 @@ ...@@ -35,15 +35,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -62,8 +56,6 @@ ...@@ -62,8 +56,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -35,15 +35,9 @@ ...@@ -35,15 +35,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -61,8 +55,6 @@ ...@@ -61,8 +55,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -36,15 +36,9 @@ ...@@ -36,15 +36,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -66,8 +60,6 @@ ...@@ -66,8 +60,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -36,15 +36,9 @@ ...@@ -36,15 +36,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -66,8 +60,6 @@ ...@@ -66,8 +60,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -35,15 +35,9 @@ ...@@ -35,15 +35,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "The keyname, popped member, and its score.",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -62,8 +56,6 @@ ...@@ -62,8 +56,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -35,15 +35,9 @@ ...@@ -35,15 +35,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -62,8 +56,6 @@ ...@@ -62,8 +56,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
...@@ -35,15 +35,9 @@ ...@@ -35,15 +35,9 @@
} }
], ],
"reply_schema": { "reply_schema": {
"oneOf": [ "description": "Array of results. Returns empty array if the key does not exist.",
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "Array of results",
"type": "array", "type": "array",
"minItems": 1, "minItems": 0,
"maxItems": 4294967295, "maxItems": 4294967295,
"items": { "items": {
"oneOf": [ "oneOf": [
...@@ -62,8 +56,6 @@ ...@@ -62,8 +56,6 @@
} }
] ]
} }
}
]
}, },
"arguments": [ "arguments": [
{ {
......
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