Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds return value schemas for child processes #215

Merged
merged 6 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ 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)
- `apply_neighborhood`: Clarify behavior for data cubes returned by the child processes and for that add the exception `DataCubePropertiesImmutable`.

### 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.",
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"description": "Any data type."
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
},
{
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.",
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
"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