APITable Docs
ConfigurationAutomation

Action's JsonShema

Action's JsonShema :::info what is JsonSchema? ::: InputJsonSchema OutputJsonSchema JsonSchema Schema PropertiesSchema PropertySchema UiSchema SubUiSchema UiOptions InputJsonSchema

InputJsonSchema

Declares the data structure and page structure of the robot action input.

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 of the robot action output.

Details

Type: JsonSchema

Example

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

JsonSchema

We use it to define the data structure and page structure of the robot action input and output.

Details

Type: object

Properties

KeyRequiredTypeDescription
schemayesSchemaDeclares the data structure of the robot action input and output.
uiSchemayesUiSchemaDeclares the page structure of the robot action input and output.

Example:

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

  • {"schema": {"type": "object", "required": ["message"], "properties": {"message": {"type": "string", "title": "Action execution result"}}}, "uiSchema": { "ui:order": ["message"]}}

Schema

Declares the data structure of the robot action input and output

Details

  • Type: object

Properties

KeyRequiredTypeDescription
typeyesstring in ('object')This key-value pair is fixed.
propertiesyesPropertiesSchemaDeclares the properties of the robot action input and output data structure.
requirednoarrayDeclares the keys of the properties that must exist in the robot action input and output values.

Example

  • {"type": "object", "required": ["account", "password" ], "properties": { "account": {"type": "string", "title": "Account" }, "password": {"type": "string", "title": "Password"}}
  • {"type": "object", "required": ["fruit"], "properties": {"fruit": { "type": "string", "title": "Fruit", "enum": ["apple", "pear", "orange"], "default": "apple" }}}

PropertiesSchema

Declares the information of the properties in the robot action input and output data structure.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
[^\s]+noPropertySchemaThe key needs to be a string.

Example

  • {"account": {"type": "string", "title": "Account" }, "password": {"type": "string", "title": "Password"}}
  • {"fruit": {"type": "string", "title": "Fruit", "enum": ["apple", "pear", "orange"], "default": "apple" }}

PropertySchema

Declares the information of a property.

Details

  • Type: object

Properties

KeyRequiredTypeDescription
typeyesstring in ('string', 'array', 'object')string 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

  • {"type": "string", "title": "Account"}
  • {"type": "string", "title": "Fruit", "enum": ["apple", "pear", "orange"], "default": "apple"}

UiSchema

Used to declare the UI of JSON data.

Details

Type: object

Properties

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

Example

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

SubUiSchema

Specifies the UI style of 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 a property.
ui
noarraySpecifies the order in which property components are 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 display the title.

On this page