Validate changelog (structured)
liquibase_validateValidates Liquibase changelogs and returns compact structured pass/fail results with per-changeset errors such as duplicate IDs and checksum drift.
Instructions
Validate a Liquibase changelog and return a structured pass/fail result with per-changeset errors (duplicate ids, checksum drift). Much more compact than raw output. liquibase is on PATH — no mise/wrapper needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory to run liquibase in (where the defaults file / changelog live). | |
| labels | No | Label expression to filter changesets (--labels). | |
| contexts | No | Context expression to filter changesets (--contexts). | |
| extraArgs | No | Additional raw arguments appended to the liquibase invocation. | |
| defaultsFile | No | Path to the Liquibase defaults file (--defaults-file), e.g. db-dev.properties. Usually carries the JDBC URL, credentials, and changelog path. | |
| changelogFile | No | Changelog path (--changelog-file); usually set in the defaults file instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| retained | No | ||
| errorCount | Yes |