stac-utils / stac-task

Provides a class interface for running custom algorithms on STAC ItemCollections
Apache License 2.0
21 stars 5 forks source link

123: Support `process` arrays #166

Closed pjhartzell closed 3 days ago

pjhartzell commented 4 days ago

Related Issue(s):

Proposed Changes:

  1. Accept a list of process definition dictionaries.
  2. And continue to accept a bare dictionary for the process definition, but emit a Deprecation warning.
  3. Some decent massaging of the README.

PR Checklist:

pjhartzell commented 3 days ago

Note that all of this special casing and trying to work out what the error is if we just adopted something like pydantic to parse the incoming payloads into types: if that fails then pydantic can provide much better error messages with regard to the problem.

Oh look, we already have a head start on this for someday in the future: https://github.com/Element84/swoop/blob/main/src/swoop/api/models/workflows.py#L206. 😁

Nice. Yeah, this is something I'm interested in getting in here at some point.