APITable Docs
Automation

Json Schema

InputJsonSchema

Declares the data structure and page structure for the input of an action/trigger.

Details

Example

{
    "schema":{
        "type":"object",
        "required":[
            "account",
            "password"
        ],
        "properties":{
            "account":{
                "type":"string",
                "title":"Account"
            },
            "password":{
                "type":"string",
                "title":"Password"
            }
        }
    },
    "uiSchema":{
        "ui:order":[
            "account",
            "password"
        ]
    }
}

OutputJsonSchema

Declares the data structure and page structure for the output of an action/trigger.

Details

Example

{
    "schema":{
        "type":"object",
        "required":[
            "message"
        ],
        "properties":{
            "message":{
                "type":"string",
                "title":"action execute result"
            }
        }
    },
    "uiSchema":{
        "ui:order":[
            "message"
        ]
    }
}

JsonSchema

Used to define the data structure and page structure for the input/output of an action/trigger.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
schemayesSchemaDeclares the data structure for the input/output of an action/trigger.
uiSchemayesUiSchemaDeclares the page structure for the input/output of an action/trigger.

Example

{
    "schema":{
        "type":"object",
        "required":[
            "key1"
        ],
        "properties":{
            "key1":{
                "type":"string",
                "title":"you define content"
            }
        }
    },
    "uiSchema":{
        "ui:order":[
            "key1"
        ]
    }
}

Schema

Declares the data structure for the input/output of an action/trigger.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
typeyesstring in ('object')This key-value pair is fixed.
propertiesyesPropertiesSchemaDeclares the properties of the input/output data structure for an action/trigger.
requirednoarrayDeclares the keys of the properties that are required in the input/output for an action/trigger.

Example

{
    "type":"object",
    "required":[
        "fruit"
    ],
    "properties":{
        "fruit":{
            "type":"string",
            "title":"Fruit",
            "enum":[
                "Apple",
                "Pear",
                "Orange"
            ],
            "default":"Apple"
        }
    }
}

PropertiesSchema

Declares the properties of the input/output data structure for an action/trigger.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
[^\s]+noPropertySchemaThe key must be a non-empty string.

Example

{
    "account":{
        "type":"string",
        "title":"Account"
    },
    "password":{
        "type":"string",
        "title":"Password"
    }
}

PropertySchema

Declares the information of a property.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
typeyesstring in ('string', 'array', 'object')The type of the property.
titleyesstringThe name of the property.
descriptionnostringThe description of the property.
enumnoarrayWhen the property type is string, specifies the possible values.
defaultnostringWhen the property type is string, specifies the default value.

Example

{
    "fruit":{
        "type":"string",
        "title":"Fruit",
        "enum":[
            "Apple",
            "Pear",
            "Orange"
        ],
        "default":"Apple"
    }
}

UiSchema

Used to declare the object for the interface of JSON data.

Details

Type: object

Properties

KeyRequiredTypeDescription
ui
noarraySpecifies the order in which properties are displayed on the interface.
key of PropertiesSchemanoSubUiSchemaThe key is the property key.

Example

  • {"ui:order": [ "account", "password"]}

SubUiSchema

Specifies the UI style for a property.

Details

Type: object

Properties

KeyRequiredTypeDescription
ui
noUiOptionsSpecifies some styles when rendering a property.
ui
nostringSpecifies the name of the component used to render the property.
ui
noarraySpecifies the order in which the property component is displayed on the page.
key of PropertiesSchemanoSubUiSchemaThe key is the property key.

UiOptions

Specifies some styles when rendering a property.

Details

Type: object

Properties

KeyRequiredTypeDescription
showTitlenobooleanWhether to show the title.

On this page