Convert all schemas to flat format with inline required/secret

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.*
This commit is contained in:
2026-02-23 09:05:54 -06:00
parent d6dfcf65d6
commit 62c42b3996
7 changed files with 107 additions and 130 deletions

View File

@@ -20,20 +20,18 @@ entry_point: counter_sensor.js
trigger_types:
- nodejs_example.counter
# Sensor configuration schema
# Sensor configuration schema (flat format with inline required/secret)
parameters:
type: object
properties:
default_interval_seconds:
type: integer
description: "Default interval between counter emissions (in seconds)"
default: 1
minimum: 1
maximum: 3600
key_prefix:
type: string
description: "Prefix for counter keys in the Attune keystore"
default: "nodejs_example.counter"
default_interval_seconds:
type: integer
description: "Default interval between counter emissions (in seconds)"
default: 1
minimum: 1
maximum: 3600
key_prefix:
type: string
description: "Prefix for counter keys in the Attune keystore"
default: "nodejs_example.counter"
# Poll interval (how often the sensor checks for events)
poll_interval: 1