Open-EO / Open-EO/openeo-python-driver
/validation MUST NOT complain about unresolvable process parameters
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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