Skip to content

Release v0.0.6

Choose a tag to compare

@ImElio ImElio released this 04 Oct 14:46
· 2 commits to main since this release

Added

  • Runtime Model Validator with stable error codes (FROG001..FROG010, FROG101..FROG108).
  • Colored, structured error output; compact by default, detailed with FROG_VALIDATE_FULL=1.
  • Timeout diagnostics try to include source location (file:line).

Changed

  • frog.Run and frog.RunContext now validate models before starting.
    No need to import any validate package in apps.

Notes

  • View() and Init() are invoked once during validation (guarded & time-limited).
    Keep View() side-effect free and fast.
  • Env controls:
    • FROG_VALIDATE_FULL=1 → detailed sections (Errors/Warnings)
    • FROG_COLOR=on|off (overrides detection)
    • NO_COLOR honored
  • Advanced users can bypass validation via frog.NewApp(...).Run().