Skip to content

Commit

Permalink
Adds return value schemas for child processes Open-EO/openeo-api#350
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 21, 2020
1 parent a5a0cb6 commit 9fd189c
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Processes:
- `is_infinity`
- `nan`
- Added return value details (property `returns`) for the schemas with the subtype `process-graph`. [API#350](https://github.com/Open-EO/openeo-api/issues/350)

### Changed
- Added `proposals` folder for experimental processes. Experimental processes are not covered by the CHANGELOG!
Expand Down
8 changes: 7 additions & 1 deletion aggregate_spatial.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion aggregate_temporal.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion aggregate_temporal_period.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion apply.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion apply_dimension.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
12 changes: 11 additions & 1 deletion apply_neighborhood.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the data cube with the newly computed values and the same dimensions. The dimension properties (name, type, labels, reference system and resolution) must remain unchanged, otherwise a `DataCubePropertiesImmutable` exception will be thrown.",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
}
}
},
{
Expand Down Expand Up @@ -214,6 +221,9 @@
"exceptions": {
"DimensionNotAvailable": {
"message": "A dimension with the specified name does not exist."
},
"DataCubePropertiesImmutable": {
"message": "The dimension properties (name, type, labels, reference system and resolution) must remain unchanged."
}
}
}
8 changes: 7 additions & 1 deletion array_apply.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion array_filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return `true` if the value should be kept in the array, otherwise return `false`.",
"schema": {
"type": "boolean"
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion count.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return `true` if the element should increase the counter, otherwise return `false`.",
"schema": {
"type": "boolean"
}
}
},
{
"title": "All elements",
Expand Down
8 changes: 7 additions & 1 deletion filter_labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return `true` if the dimension label should be kept in the data cube, otherwise return `false`.",
"schema": {
"type": "boolean"
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion load_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@
"description": "Any data type."
}
}
]
],
"returns": {
"description": "Return `true` if the data should be loaded into the data cube, otherwise return `false`.",
"schema": {
"type": "boolean"
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion merge_cubes.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
},
"default": null,
"optional": true
Expand Down
8 changes: 7 additions & 1 deletion meta/subtype-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,13 @@
"description": "Any data type."
}
}
]
],
"returns": {
"description": "Return `true` if the data should be used, otherwise return `false`.",
"schema": {
"type": "boolean"
}
}
}
},
"output-format": {
Expand Down
8 changes: 7 additions & 1 deletion proposals/aggregate_spatial_binary.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion proposals/aggregate_spatial_window.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion proposals/reduce_dimension_binary.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion reduce_dimension.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion resample_cube_temporal.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@
"optional": true,
"default": null
}
]
],
"returns": {
"description": "Return the value that should be stored in the data cube.",
"schema": {
"description": "Any data type."
}
}
}
},
{
Expand Down

0 comments on commit 9fd189c

Please sign in to comment.