Open-EO / openeo-backend-validator

Service to validate back-end compliance with the API specification.
Apache License 2.0
1 stars 3 forks source link

OpenEO Validator Web Interface: Loading the test data to POST /jobs causes error in GET /jobs #49

Closed klimeto closed 3 years ago

klimeto commented 3 years ago

Dear devs,

While testing our API instance, I found out that while validating the Data Processing group of endpoints the POST /jobs test data brakes GET /jobs validation most probably due to invalid payload usage.

After data upload via POST /jobs our backend fails in returning via GET /jobs due following error thrown at our implementation side:

fastapi_1  |     raise ValidationError(errors, field.type_)
fastapi_1  | pydantic.error_wrappers.ValidationError: 1 validation error for ViewJobAll
fastapi_1  | response -> jobs -> 0 -> process -> parameters
fastapi_1  |   value is not a valid dict (type=type_error.dict)
fastapi_1  | TRACE:    139.191.240.36:41450 - Connection lost

While when I try to upload via POST /jobs these 2 jobs:

https://raw.githubusercontent.com/Open-EO/openeo-D28/master/src/openeo_d28/body/GEE_job.json

https://raw.githubusercontent.com/Open-EO/openeo-D28/master/src/openeo_d28/body/EODC_job.json

our backend does not return any error while sending GET /jobs.

Could you share with us the payload to use test POST /jobs in order for us to understand whether the problem is at our side with the model definition?

Thank you,

klimeto commented 3 years ago

I found out the problem, I did not clean the DB in our instance which was causing this problem. Now both POST /jobs and GET /jobs are validated with valid results.