inforge validate
Validate all resource definitions for an environment against their JSON schemas. Also reads
inforge.yaml to resolve project-level provider defaults:
a resource that omits provider: is checked against the default for its class, and a "no provider
configured" error is raised if neither a per-resource value nor a default is present.
Usage
inforge validate <env> [flags]
Arguments
| Argument | Description |
|---|---|
env | Environment name (e.g. prd, dev). Resolves to resources/<env>/. |
Flags
| Flag | Default | Description |
|---|---|---|
--dir / -d | ./resources | Path to the resources directory |
--config / -c | ./inforge.yaml | Path to the project config file |
Output
Reports each invalid file with its path and schema errors:
resources/prd/regional/compute/bridge/manifest.yaml: no provider configured for class "compute"
resources/prd/regional/network/ingress/manifest.yaml: valid
validation failed
Exits 0 on success, non-zero on any validation error.
Example
inforge validate prd
inforge validate dev --dir ./infra/resources
When to run
Always run inforge validate before opening a PR. The CI workflow calls it automatically
via the validate reusable workflow.