Open-EO / openeo-test-suite

Test suite for validation of openEO back-ends against the openEO API specification
Apache License 2.0
0 stars 2 forks source link

Confusing and invalid JSON payload examples #47

Open m-mohr opened 9 months ago

m-mohr commented 9 months ago

The test suite developed in WP4 contains invalid payloads:

For example: https://raw.githubusercontent.com/eodcgmbh/openeo-test-suite/11b37267ce409f05e6f8c50ee210602735580126/src/openeo_test_suite/tests/general/payload_examples/patch_jobs/patch_jobs_1.json (similarly post_result_1).

For example:

Additionally, many things are very weirdly filled:

The example(s) should be cleaned up.

Copied from #45

GeraldIr commented 8 months ago

The payloads were taken directly from the openapi.json document (https://api.openeo.org/#tag/Data-Processing/operation/update-job), where I assumed that the given request samples were valid and I didn't look into it further.

I will update it with with a minimum working example that fits the constraints of the definition.

m-mohr commented 8 months ago

Yeah, unfortunately some of these examples are automatically generated by redoc and don't make a lot of sense. We should work on it and provide specific examples so that the autogeneration doesn't apply. => https://github.com/Open-EO/openeo-api/issues/529