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

Process unification #310 #348

Draft
wants to merge 10 commits into
base: draft
Choose a base branch
from
3 changes: 2 additions & 1 deletion .spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ except:
- oas3-valid-schema-example
"openapi.yaml#/paths/~1processes/get/responses/200/content/application~1json/example":
- oas3-valid-oas-content-example
"openapi.yaml#/paths/~1process_graphs/get/responses/200/content/application~1json/example":
"openapi.yaml#/paths/~1processes~1{namespace}/get/responses/200/content/application~1json/example":
- oas3-valid-oas-content-example
"openapi.yaml#/paths/~1service_types/get/responses/200/content/application~1json/example":
- oas3-valid-oas-content-example
Expand All @@ -17,6 +17,7 @@ rules:
contact-properties: true
tag-description: true
oas3-parameter-description: true
operation-2xx-response: off # remove this line once /process_graphs/... endpoints have been removed
oas3-unused-components-schema: false # Broken: https://github.com/stoplightio/spectral/issues/1271
operation-summary-formatted:
description: Operation `summary` should start with upper case and not end with a dot.
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Additional dimensions in `cube:dimensions` can only be of type `other`.
- The extents `interval` and `bbox` can have multiple entries.
- Allow all STAC versions that are compatible to STAC 0.9.0.
- Process graph nodes have an additional field `namespace` to distinguish pre-defined and user-defined processes. The default behavior has not changed. [#305](https://github.com/Open-EO/openeo-api/issues/305)
- Process graph nodes have an additional field `namespace` to distinguish predefined and user-defined processes. The default behavior has not changed. [#305](https://github.com/Open-EO/openeo-api/issues/305)
- Added `format: commonmark` to all properties supporting CommonMark formatting.
- `errors.json`: The pre-defined error messages have been reworked. [#272](https://github.com/Open-EO/openeo-api/issues/272), [#273](https://github.com/Open-EO/openeo-api/issues/273)
- `errors.json`: The predefined error messages have been reworked. [#272](https://github.com/Open-EO/openeo-api/issues/272), [#273](https://github.com/Open-EO/openeo-api/issues/273)
- Added `FolderOperationUnsupported`, `UnsupportedApiVersion`, `PermissionsInsufficient`, `ProcessGraphIdDoesntMatch` and `PredefinedProcessExists`.
- Added variable `reason` to error `FilePathInvalid` and `type` to `FileTypeInvalid` and`ServiceUnsupported`.
- Replaced the following error messages. The variables in the messages may have changed, too.
Expand Down
6 changes: 3 additions & 3 deletions errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@
]
},
"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.",
"description": "If a user wants to store a user-defined process with the id of a predefined process.",
"message": "A predefined process with the given identifier exists.",
"http": 400,
"tags": [
"User-Defined Processes"
Expand All @@ -227,7 +227,7 @@
]
},
"ProcessUnsupported": {
"description": "A process (pre-defined or user-defined) with the specified identifier is not available. To be used when validating or executing process graphs.",
"description": "A process (predefined or user-defined) with the specified identifier is not available. To be used when validating or executing process graphs.",
"message": "Process with identifier '{process}' is not available in namespace '{namespace}'.",
"http": 400,
"tags": [
Expand Down
Loading