Skip to content

Commit

Permalink
Merge pull request #403 from Open-EO/error-json
Browse files Browse the repository at this point in the history
Clarified error.json, added new error codes
  • Loading branch information
m-mohr authored Jun 29, 2021
2 parents ac1351e + 5a7a320 commit f065286
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed inconsistencies in errors.json: removed `ProcessGraphIdDoesntMatch`, clarified `ProcessGraphMissing`. [#394](https://github.com/Open-EO/openeo-api/issues/394), [#395](https://github.com/Open-EO/openeo-api/issues/395)
- Fixed inconsistencies in errors.json: removed `ProcessGraphIdDoesntMatch`, clarified `ProcessGraphMissing`, added `ProcessInvalid` and `ProcessGraphInvalid`. [#394](https://github.com/Open-EO/openeo-api/issues/394), [#395](https://github.com/Open-EO/openeo-api/issues/395), [#401](https://github.com/Open-EO/openeo-api/issues/401)
- Fixed the default value for the version number in the API url (`v1.0` -> `v1`) and improved the description for API versioning. [#393](https://github.com/Open-EO/openeo-api/issues/393)
- Fixed the Collection example to use `gsd` instead of `eo:gsd`. [#399](https://github.com/Open-EO/openeo-api/issues/399)

Expand Down
26 changes: 24 additions & 2 deletions errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@
"User-Defined Processes"
]
},
"ProcessGraphMissing": {
"description": "The request doesn't contain a valid process. For jobs, services, and sync. processing it is contained in the parameter `process`.",
"ProcessInvalid": {
"description": "The process given is invalid, which ususlly means that the process metadata is invalid.",
"message": "Invalid process specified.",
"http": 400,
"tags": [
Expand All @@ -202,6 +202,28 @@
"Data Processing"
]
},
"ProcessGraphMissing": {
"description": "The process doesn't contain a process graph. For jobs, services, and sync. processing the parameter `process` must contain a `process_graph`.",
"message": "Invalid process specified. It doesn't contain a process graph.",
"http": 400,
"tags": [
"User-Defined Processes",
"Batch Jobs",
"Secondary Services",
"Data Processing"
]
},
"ProcessGraphInvalid": {
"description": "The process doesn't contain a valid process graph, which means it doesn't comply to the general structure / schema.",
"message": "Invalid process graph specified.",
"http": 400,
"tags": [
"User-Defined Processes",
"Batch Jobs",
"Secondary Services",
"Data Processing"
]
},
"PredefinedProcessExists": {
"description": "If a user wants to store a user-defined process with the id of a pre-defined process.",
"message": "A pre-defined process with the given identifier exists.",
Expand Down

0 comments on commit f065286

Please sign in to comment.