Add animation-pack validator CLI #76

Open
opened 2026-05-23 00:43:41 -04:00 by JackFrostbyte · 0 comments

Objective

Add a command-line validator for RGB Aura JSON animation packs.

The validator should allow a user or contributor to validate an animation pack before attempting to run it through the RGB Aura runtime.

Scope

Create a validator script or CLI command that checks an animation pack against:

  • The JSON animation-pack schema.
  • The current-machine device profile.
  • RGB Aura safety rules.

Required validation behavior

The validator should check:

  • JSON syntax.
  • Schema compliance.
  • Required metadata.
  • Compatible schema version.
  • Compatible device profile.
  • Known logical zones only.
  • No reserved ARGB zone usage.
  • LED indexes within usable ranges.
  • Supported effect types only.
  • Valid color values.
  • Valid durations.
  • Valid timeline structure.
  • Safe bounded values.

Required CLI behavior

The command should provide clear output:

  • Success message when the pack is valid.
  • Clear errors when the pack is invalid.
  • Path of the validated pack.
  • Optional summary of zones/effects found in the pack.

Out of scope

  • Running animations.
  • Modifying packs automatically.
  • GUI validation.
  • Downloading or fetching packs.

Acceptance criteria

  • A validator command or script exists.
  • A valid animation pack passes.
  • Invalid JSON fails clearly.
  • Reserved zone usage fails clearly.
  • Out-of-range LED indexes fail clearly.
  • Unknown effect types fail clearly.
  • Tests cover important validator success and failure cases.
# Objective Add a command-line validator for RGB Aura JSON animation packs. The validator should allow a user or contributor to validate an animation pack before attempting to run it through the RGB Aura runtime. # Scope Create a validator script or CLI command that checks an animation pack against: - The JSON animation-pack schema. - The current-machine device profile. - RGB Aura safety rules. # Required validation behavior The validator should check: - JSON syntax. - Schema compliance. - Required metadata. - Compatible schema version. - Compatible device profile. - Known logical zones only. - No reserved ARGB zone usage. - LED indexes within usable ranges. - Supported effect types only. - Valid color values. - Valid durations. - Valid timeline structure. - Safe bounded values. # Required CLI behavior The command should provide clear output: - Success message when the pack is valid. - Clear errors when the pack is invalid. - Path of the validated pack. - Optional summary of zones/effects found in the pack. # Out of scope - Running animations. - Modifying packs automatically. - GUI validation. - Downloading or fetching packs. # Acceptance criteria - A validator command or script exists. - A valid animation pack passes. - Invalid JSON fails clearly. - Reserved zone usage fails clearly. - Out-of-range LED indexes fail clearly. - Unknown effect types fail clearly. - Tests cover important validator success and failure cases.
JackFrostbyte added reference develop 2026-05-23 00:43:43 -04:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
JackFrostbyte/rgb-aura#76
No description provided.