-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate general API compliance checks
- Loading branch information
Gerald Walter Irsiegler
authored and
Gerald Walter Irsiegler
committed
Jan 31, 2024
1 parent
e20dac7
commit 2bd3a1c
Showing
10 changed files
with
7,401 additions
and
6,367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12,528 changes: 6,264 additions & 6,264 deletions
12,528
src/openeo_test_suite/tests/general/openapi.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/openeo_test_suite/tests/general/payload_examples/empty_payload/empty_payload.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
133 changes: 133 additions & 0 deletions
133
src/openeo_test_suite/tests/general/payload_examples/mock_processes/mock_processes_0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"processes": [ | ||
{ | ||
"id": "apply", | ||
"summary": "Apply a process to each pixel", | ||
"description": "Applies a *unary* process to each pixel value in the data cube (i.e. a local operation). A unary process takes a single value and returns a single value, for example ``abs()`` or ``linear_scale_range()``.", | ||
"categories": [ | ||
"cubes" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "data", | ||
"description": "A data cube.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "datacube" | ||
} | ||
}, | ||
{ | ||
"name": "process", | ||
"description": "A unary process to be applied on each value, may consist of multiple sub-processes.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "process-graph", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"description": "The value to process.", | ||
"schema": { | ||
"description": "Any data type." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"returns": { | ||
"description": "A data cube with the newly computed values. The resolution, cardinality and the number of dimensions are the same as for the original data cube.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "datacube" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "multiply", | ||
"summary": "Multiplication of two numbers", | ||
"description": "Multiplies the two numbers `x` and `y` (*x * y*) and returns the computed product.\n\nNo-data values are taken into account so that `null` is returned if any element is such a value.\n\nThe computations follow [IEEE Standard 754](https://ieeexplore.ieee.org/document/8766229) whenever the processing environment supports it.", | ||
"categories": [ | ||
"math" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"description": "The multiplier.", | ||
"schema": { | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "y", | ||
"description": "The multiplicand.", | ||
"schema": { | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
} | ||
} | ||
], | ||
"returns": { | ||
"description": "The computed product of the two numbers.", | ||
"schema": { | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
} | ||
}, | ||
"exceptions": { | ||
"MultiplicandMissing": { | ||
"message": "Multiplication requires at least two numbers." | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"arguments": { | ||
"x": 5, | ||
"y": 2.5 | ||
}, | ||
"returns": 12.5 | ||
}, | ||
{ | ||
"arguments": { | ||
"x": -2, | ||
"y": -4 | ||
}, | ||
"returns": 8 | ||
}, | ||
{ | ||
"arguments": { | ||
"x": 1, | ||
"y": null | ||
}, | ||
"returns": null | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"rel": "about", | ||
"href": "http://mathworld.wolfram.com/Product.html", | ||
"title": "Product explained by Wolfram MathWorld" | ||
}, | ||
{ | ||
"rel": "about", | ||
"href": "https://ieeexplore.ieee.org/document/8766229", | ||
"title": "IEEE Standard 754-2019 for Floating-Point Arithmetic" | ||
} | ||
] | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"rel": "alternate", | ||
"href": "https://openeo.example/processes", | ||
"type": "text/html", | ||
"title": "HTML version of the processes" | ||
} | ||
] | ||
} |
Oops, something went wrong.