Skip to content

Check validity of process arguments based on JSON Schema #48

@jonathom

Description

@jonathom

I submitted a filter_bands process as so: var red = builder.filter_bands(cubes, "B04"), which is accepted and passed to backend (VITO). The process graph then contains

"filter1": {
      "arguments": {
        "bands": "B04",

Which causes a problem in the execution: Invalid band name/index 'B'. Valid names: ['VV', 'B02', 'B04', 'B08']
When I submit the process like this, as intended by specification: var red = builder.filter_bands(cubes, ["B04"]) everything works fine.

Should that throw and error upon submission?
In a quick search I also couldn't find documentation for filter_bands, doesn't look like it's in this repository.. why's that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions