Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 09 Jun 13:12
· 126 commits to main since this release

apic v0.1.1

Template validation: catch a broken project template before it bites you.

New

  • apic validate --template — validates your project's .apic/template.json (as it merges onto the built-in default), printing ok/FAIL and exiting non-zero on failure, so it can gate CI or a pre-commit hook. Mutually exclusive with --filename.

Behavior change

  • apic create now fails on an invalid project template. Previously, if .apic/template.json existed but was malformed (bad JSON, or an overlay that merged into an invalid contract), create printed a warning and silently scaffolded from the built-in template. It now aborts with an error and writes nothing, so a broken template can't go unnoticed.
  • The zero-config path is unchanged: no project, a missing template file, or a freshly seeded template still use the built-in template silently. Only an existing-but-invalid template is a hard error.

Under the hood

  • validate --template and create share a single definition of a "valid template" (merge_onto_default), so they can never disagree.

Install

cargo install apic-cli

Or download a prebuilt binary for your platform from the assets below (macOS arm64/x64, Linux x64) and verify with the matching .sha256.

Full changelog: v0.1.0...v0.1.1