Skip to main content

Overview

The geval validate command validates a contract file to ensure it’s syntactically and semantically correct before use.

Usage

geval validate <path> [options]

Options

OptionDescription
<path>Path to eval contract (YAML/JSON) (required)
--strictEnable strict validation (warnings become errors)
--jsonOutput results as JSON

Example

geval validate contract.yaml --strict

What It Checks

  • Contract schema version
  • Required fields are present
  • Rule syntax is correct
  • Metric references are valid
  • Baseline configurations are correct
  • Operator syntax is valid