thetallweeks
4/19/2019 - 9:05 PM

datatype_string.json

{
    "data_schema": {
        "group": "",
        "name": "String",
        "title": "String",
        "description": "String datatype inherited from Generic datatypes",
        "type": "datatype.string",
        "base_type": "datatype",
        "inherits": "generic.datatype",
        "version": "1.0.0",
        "variable_type": true,
        "property_schema": {
            "properties": {
                "value": {
                    "type": "string",
                    "title": "Value"
                }
            }
        }
    },
    "view_schema": {
        "group": "",
        "name": "String",
        "title": "String",
        "description": "String datatype inherited from Generic datatypes",
        "type": "datatype.string",
        "base_type": "datatype",
        "inherits": "generic.datatype",
        "version": "1.0.0",
        "variable_type": true,
        "property_schema": {
            "if": {
                "properties": {
                    "scope": {
                        "enum": ["input"]
                    }
                }
            },
            "then": {
                "properties": {
                    "is_required": {
                        "lhv_invisible": "none"
                    }
                }
            },
            "properties": {
                "value": {
                    "type": "string",
                    "component": "textarea",
                    "title": "Value"
                },
                "is_required": {
                    "type": "boolean",
                    "component": "checkbox",
                    "title": "Required",
                    "lhv_invisible": "formAndData"
                }
            }
        }
    }
}