diff --git a/CHANGELOG.md b/CHANGELOG.md index 73c67f94..18ff0e13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `between`: Support for temporal comparison. - Deprecated `GeometryCollections` are not supported any longer. [#389](https://github.com/Open-EO/openeo-processes/issues/389) - Deprecated PROJ definitions for the CRS are not supported any longer. +- `array_contains`, `eq`, `gt`, `gte`, `lt`, `lte`, `neq`: Support for arrays and objects removed. [#208](https://github.com/Open-EO/openeo-processes/issues/208) ### Fixed diff --git a/array_contains.json b/array_contains.json index 803e14d0..37ced980 100644 --- a/array_contains.json +++ b/array_contains.json @@ -1,7 +1,7 @@ { "id": "array_contains", "summary": "Check whether the array contains a given value", - "description": "Checks whether the array specified for `data` contains the value specified in `value`. Returns `true` if there's a match, otherwise `false`.\n\n**Remarks:**\n\n* To get the index or the label of the value found, use ``array_find()``.\n* All definitions for the process ``eq()`` regarding the comparison of values apply here as well. A `null` return value from ``eq()`` is handled exactly as `false` (no match).\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*.\n* An integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`. Still, this process may return unexpectedly `false` when comparing floating-point numbers due to floating-point inaccuracy in machine-based computation.\n* Temporal strings are treated as normal strings and MUST NOT be interpreted.\n* If the specified value is an array, object or null, the process always returns `false`. See the examples for one to check for `null` values.", + "description": "Checks whether the array specified for `data` contains the value specified in `value`. Returns `true` if there's a match, otherwise `false`.\n\n**Remarks:**\n\n* To get the index or the label of the value found, use ``array_find()``.\n* All definitions for the process ``eq()`` regarding the comparison of values apply here as well. A `null` return value from ``eq()`` is handled exactly as `false` (no match).\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*.\n* An integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`. Still, this process may return unexpectedly `false` when comparing floating-point numbers due to floating-point inaccuracy in machine-based computation.\n* Temporal strings are treated as normal strings and MUST NOT be interpreted.", "categories": [ "arrays", "comparison", @@ -22,7 +22,12 @@ "name": "value", "description": "Value to find in `data`. If the value is `null`, this process returns always `false`.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } } ], @@ -77,25 +82,6 @@ }, "returns": false }, - { - "arguments": { - "data": [ - [ - 1, - 2 - ], - [ - 3, - 4 - ] - ], - "value": [ - 1, - 2 - ] - }, - "returns": false - }, { "arguments": { "data": [ @@ -111,22 +97,6 @@ "value": 2 }, "returns": false - }, - { - "arguments": { - "data": [ - { - "a": "b" - }, - { - "c": "d" - } - ], - "value": { - "a": "b" - } - }, - "returns": false } ], "links": [ diff --git a/eq.json b/eq.json index ce07da96..e7712399 100644 --- a/eq.json +++ b/eq.json @@ -1,7 +1,7 @@ { "id": "eq", "summary": "Equal to comparison", - "description": "Compares whether `x` is strictly equal to `y`.\n\n**Remarks:**\n\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*. Nevertheless, an integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`.\n* If any operand is `null`, the return value is `null`.\n* If any operand is an array or object, the return value is `false`.\n* Strings are expected to be encoded in UTF-8 by default.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", + "description": "Compares whether `x` is strictly equal to `y`.\n\n**Remarks:**\n\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*. Nevertheless, an integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`.\n* If any operand is `null`, the return value is `null`.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", "categories": [ "texts", "comparison" @@ -11,14 +11,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { @@ -142,21 +152,6 @@ }, "returns": false }, - { - "arguments": { - "x": [ - 1, - 2, - 3 - ], - "y": [ - 1, - 2, - 3 - ] - }, - "returns": false - }, { "arguments": { "x": null, diff --git a/gt.json b/gt.json index f80b6e11..ae2cf151 100644 --- a/gt.json +++ b/gt.json @@ -10,14 +10,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } } ], diff --git a/gte.json b/gte.json index 378d03e6..a32816c4 100644 --- a/gte.json +++ b/gte.json @@ -1,7 +1,7 @@ { "id": "gte", "summary": "Greater than or equal to comparison", - "description": "Compares whether `x` is greater than or equal to `y`.\n\n**Remarks:**\n\n* If any operand is `null`, the return value is `null`.\n* If any operand is an array or object, the return value is `false`.\n* If the operands are not equal (see process ``eq()``) and any of them is not a `number`, the process returns `false`.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", + "description": "Compares whether `x` is greater than or equal to `y`.\n\n**Remarks:**\n\n* If any operand is `null`, the return value is `null`.\n* If the operands are not equal (see process ``eq()``) and any of them is not a `number`, the process returns `false`.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", "categories": [ "comparison" ], @@ -10,14 +10,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } } ], @@ -73,21 +83,6 @@ }, "returns": false }, - { - "arguments": { - "x": [ - 1, - 2, - 3 - ], - "y": [ - 1, - 2, - 3 - ] - }, - "returns": false - }, { "arguments": { "x": null, diff --git a/lt.json b/lt.json index da6fe80d..0cc45f87 100644 --- a/lt.json +++ b/lt.json @@ -10,14 +10,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } } ], diff --git a/lte.json b/lte.json index bf007154..db6d6068 100644 --- a/lte.json +++ b/lte.json @@ -1,7 +1,7 @@ { "id": "lte", "summary": "Less than or equal to comparison", - "description": "Compares whether `x` is less than or equal to `y`.\n\n**Remarks:**\n\n* If any operand is `null`, the return value is `null`.\n* If any operand is an array or object, the return value is `false`.\n* If the operands are not equal (see process ``eq()``) and any of them is not a `number`, the process returns `false`.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", + "description": "Compares whether `x` is less than or equal to `y`.\n\n**Remarks:**\n\n* If any operand is `null`, the return value is `null`.\n* If the operands are not equal (see process ``eq()``) and any of them is not a `number`, the process returns `false`.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", "categories": [ "comparison" ], @@ -10,14 +10,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } } ], diff --git a/neq.json b/neq.json index 4446bb41..ff6bc9fd 100644 --- a/neq.json +++ b/neq.json @@ -1,7 +1,7 @@ { "id": "neq", "summary": "Not equal to comparison", - "description": "Compares whether `x` is **not** strictly equal to `y`.\n\n**Remarks:**\n\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*. Nevertheless, an integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`.\n* If any operand is `null`, the return value is `null`.\n* If any operand is an array or object, the return value is `false`.\n* Strings are expected to be encoded in UTF-8 by default.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", + "description": "Compares whether `x` is **not** strictly equal to `y`.\n\n**Remarks:**\n\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*. Nevertheless, an integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`.\n* If any operand is `null`, the return value is `null`.\n* Strings are expected to be encoded in UTF-8 by default.\n* Temporal strings are normal strings. To compare temporal strings as dates/times, use ``date_difference()``.", "categories": [ "texts", "comparison" @@ -11,14 +11,24 @@ "name": "x", "description": "First operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { "name": "y", "description": "Second operand.", "schema": { - "description": "Any data type is allowed." + "type": [ + "number", + "boolean", + "string", + "null" + ] } }, { @@ -135,21 +145,6 @@ }, "returns": true }, - { - "arguments": { - "x": [ - 1, - 2, - 3 - ], - "y": [ - 1, - 2, - 3 - ] - }, - "returns": false - }, { "arguments": { "x": null,