Files
git.stella-ops.org/docs/features/unchecked/cli/local-validator-for-offline-config-checking.md

1.2 KiB

Local Validator for Offline Config Checking

Module

Cli

Status

IMPLEMENTED

Description

Offline local validator that checks stella.yaml configuration files without requiring server connectivity, enabling developers to validate configs before committing.

Implementation Details

  • Validation Module: src/Cli/StellaOps.Cli/Validation/ -- offline validation infrastructure
  • Command Group: src/Cli/StellaOps.Cli/Commands/ConfigCommandGroup.cs -- config validation under config commands
  • Commands:
    • stella config validate / stella config validate-yaml <path> -- validate stella.yaml configuration offline
  • Validation checks: schema compliance, required fields, value ranges, cross-field consistency

E2E Test Plan

  • Run stella config validate ./stella.yaml and verify validation passes for valid config
  • Run with invalid config and verify validation errors reported with line numbers
  • Verify validation works without network connectivity (offline)
  • Verify schema compliance checks for all required fields
  • Verify value range validation (e.g., port numbers, timeout values)
  • Verify cross-field consistency checks