@@ -43,8 +43,6 @@ class ProcessDefinition(NamedTuple):
4343 # Definition what the process returns
4444 returns : Optional [dict ] = None
4545
46- # TODO: official naming of these "processing parameter" related properties is undecided at the moment.
47- # see https://github.com/Open-EO/openeo-api/pull/471#discussion_r1904253964
4846 default_job_options : Optional [dict ] = None
4947 default_synchronous_options : Optional [dict ] = None
5048
@@ -111,18 +109,10 @@ def _get_process_definition_from_url(process_id: str, url: str) -> ProcessDefini
111109 message = f"No valid process definition for { process_id !r} found at { url !r} ." ,
112110 )
113111
114- # TODO: official property name for these "processing parameters" is undecided at the moment.
115- # see https://github.com/Open-EO/openeo-api/pull/471#discussion_r1904253964
116- if "default_job_parameters" in spec :
117- _log .warning ("Extracting experimental 'default_job_parameters' from process definition." )
118- default_job_options = spec ["default_job_parameters" ]
119- else :
120- default_job_options = None
121- if "default_synchronous_parameters" in spec :
122- _log .warning ("Extracting experimental 'default_synchronous_parameters' from process definition." )
123- default_synchronous_options = spec ["default_synchronous_parameters" ]
124- else :
125- default_synchronous_options = None
112+ # Processing Parameters Extension support
113+ # (conformance class `https://api.openeo.org/extensions/processing-parameters/0.1.0`)
114+ default_job_options = spec .get ("default_job_options" , None )
115+ default_synchronous_options = spec .get ("default_synchronous_options" , None )
126116
127117 return ProcessDefinition (
128118 id = process_id ,
0 commit comments