Skip to the content.

← Command reference · lean-pkg registry · CLI overview

lean-pkg registry validate

schema + enum + history sanity; exit 0/1.

Also spelled: lean-pkg validate (all aliases).

Usage

lean-pkg registry validate [--json]

Details

Form What it does Key flags
validate schema, enum, and history sanity (a lease’s optional contact, when present, must be a string; the optional top-level lean_pkg must be a mapping and its recommended, when present, a version string X.Y.Z: see registry recommend); invalid: INVALID (N error(s)) before the FAIL lines and again last; exit 0 or 1  

JSON output

Top-level keys of --json, as recorded in the golden contract (tests/golden/json-keys.json):

Examples

Schema, enum and history sanity of the whole registry; exit 0 valid, 1 errors.

lean-pkg registry validate