TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
90 stars 10 forks source link

feat: add `treat_as` and `output_type` #16

Closed himself65 closed 2 years ago

himself65 commented 2 years ago

example

const resonseBody = {
  "decorated_params": {
        "a": {
            "type": "int",
            "treat_as": "column"
        },
        "b": {
            "type": "int",
            "treat_as": "column"
        },
        "type": {
            "type": "str",
            "treat_as": "config"
            "whitelist": [
                "add",
                "minus"
            ]
        }
    },
   "output_type": ...
  "path": "/call/calc"
}

/cc @Labelray

himself65 commented 2 years ago

Although frontend is not updated yet, we have to show this new demo ASAP.

Merging