Open-EO / Open-EO/openeo-python-driver

/validation MUST NOT complain about unresolvable process parameters

Open
#198 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API bug technical debt
Dominant language
Python
Stars
12
Forks
8
Avg merge
6d 3h
Merged PRs (30d)
4

Description

reported by a user: trying to validate a parameterized UDP raises [{'code': 'ProcessParameterRequired', 'message': "Process 'n/a' parameter '...' is required."} issues, while openEO API explicitly states:

The validation MUST NOT throw an error for unresolvable process parameters.

reproduction example

import openeo
from openeo.api.process import Parameter
from openeo.processes import add
from openeo.rest.udp import build_process_dict

con = openeo.connect("openeo.vito.be").authenticate_oidc()

x = Parameter.number("x", description="x")
add1 = add(x, 1)
spec = build_process_dict(process_id="add1", process_graph=add1, parameters=[x])

resp = con.post("/validation", json=spec)
print(resp.json())

->

{'errors': [{'code': 'ProcessParameterRequired', 'message': "Process 'n/a' parameter 'x' is required."}]}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduced POST request to the /validation endpoint and the parameterized UDP built by build_process_dict. Trace where ProcessParameterRequired is produced for unresolved parameters, then verify that validation accepts the example without that error while retaining relevant validation errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.