SciGaP / eht_gateway

a hold place for EHT gateway related: https://eht.scigap.org
0 stars 0 forks source link

get rid of space in the input paramters #5

Closed webgisdeveloper closed 6 months ago

webgisdeveloper commented 7 months ago

140, 150, 160 will be listed as three separated parameters when pass to python

webgisdeveloper commented 7 months ago

solution 1: add validation, and remind user to get rid of space solution 2: use optional parameters, then merge everything in between in python script

webgisdeveloper commented 7 months ago

in Advance Application Input Configuration

{
    "editor": {
        "ui-component-id": "textarea-input-editor",
        "config": {
            "rows": 1
        },
        "validations": [
            {
                "type": "regex",
                "value": "^[0-9\\,\\.]+$",
                "message": "Target sequence may only contain numbers and comma, no spaces"
            }
        ]
    }
}