Reference for rpi-image-gen layer variable validation rules and set policies.
Set policies determine when and how environment variables are applied during the build process:
{%- for policy in validation.set_policies %}{{ policy.description }}
{%- endfor %}true/yes/1/y → immediatefalse/no/0/n → skip
Auto-substituted in variable values:
{{ placeholder.name }} - {{ placeholder.description }}\${NAME} to keep the literal text.
# Port number validation
X-Env-Var-port-Valid: int:1024-65535
# Environment selection
X-Env-Var-env-Valid: development,staging,production
# Hostname validation
X-Env-Var-hostname-Valid: regex:^[a-zA-Z0-9.-]+$
# Boolean flag
X-Env-Var-debug-Valid: bool
# Component selection with keywords
X-Env-Var-component-Valid: keywords:frontend,backend,database
rpi-image-gen metadata --lint <file> to quickly check syntax and field names without validating environment variables.