Files
api-specs/idn/beta/schemas/ScriptConfig.yaml
2022-09-02 10:59:29 -04:00

16 lines
527 B
YAML

type: object
description: This configuration is required only when the subscription type is SCRIPT.
properties:
language:
type: string
description: The programming language of the script.
enum:
- JAVASCRIPT
example: JAVASCRIPT
responseMode:
$ref: './ResponseMode.yaml'
source:
type: string
example: "async (event, context) => { const triggerOutput = { approved: false }; return new EventCallResult(Status.SUCCESS, triggerOutput, null); }"
description: The source code of the script.