All schemas (parameters, output, output_schema, conf_schema) now use the
StackStorm-style flat format expected by Attune:
{ param_name: { type, description, required, secret, ... } }
Instead of the standard JSON Schema format:
{ type: object, properties: { ... }, required: [...] }
Also fix rule template syntax: trigger.payload.* -> event.payload.*
41 lines
920 B
YAML
41 lines
920 B
YAML
# Hello Action
|
|
# Simple Node.js action that returns "Hello, Node.js"
|
|
|
|
ref: nodejs_example.hello
|
|
label: "Hello Node.js"
|
|
description: "A simple Node.js action that returns a greeting message"
|
|
enabled: true
|
|
|
|
# Runner type determines how the action is executed
|
|
runner_type: nodejs
|
|
|
|
# Entry point is the JavaScript file to execute
|
|
entry_point: hello.js
|
|
|
|
# Parameter delivery: stdin for secure parameter passing
|
|
parameter_delivery: stdin
|
|
parameter_format: json
|
|
|
|
# Output format: json (structured data parsing enabled)
|
|
output_format: json
|
|
|
|
# Action parameters schema (flat format with inline required/secret)
|
|
parameters:
|
|
name:
|
|
type: string
|
|
description: "Optional name to include in greeting"
|
|
default: "Node.js"
|
|
|
|
# Output schema (flat format)
|
|
output_schema:
|
|
message:
|
|
type: string
|
|
description: "The greeting message"
|
|
required: true
|
|
|
|
# Tags for categorization
|
|
tags:
|
|
- nodejs
|
|
- example
|
|
- greeting
|