Skip to content

Commit 8476eff

Browse files
committed
GET /jobs/{job_id}/estimate: Enforce in the response schema that "at least one of costs, duration or size MUST be provided."
1 parent 6b13412 commit 8476eff

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- `GET /jobs/{job_id}/results`: Clarified the use of the `type` `Feature` in the GeoJSON result response. [#327](https://github.com/Open-EO/openeo-api/issues/327)
2424
- Add missing `{namespace}` placeholder to `ProcessUnsupported` error message. [#328](https://github.com/Open-EO/openeo-api/pull/328)
2525
- Fixed JSON Schema links to point to draft-07 instead of draft/2019-09.
26+
- `GET /jobs/{job_id}/estimate`: Enforce in the response schema that "at least one of `costs`, `duration` or `size` MUST be provided."
2627

2728
## 1.0.0 - 2020-07-17
2829

openapi.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -2814,6 +2814,13 @@ paths:
28142814
schema:
28152815
title: Batch Job Estimate
28162816
type: object
2817+
anyOf:
2818+
- required:
2819+
- "costs"
2820+
- required:
2821+
- "duration"
2822+
- required:
2823+
- "size"
28172824
properties:
28182825
costs:
28192826
$ref: '#/components/schemas/money'

0 commit comments

Comments
 (0)