v0.1.1
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), printingok/FAILand exiting non-zero on failure, so it can gate CI or a pre-commit hook. Mutually exclusive with--filename.
Behavior change
apic createnow fails on an invalid project template. Previously, if.apic/template.jsonexisted but was malformed (bad JSON, or an overlay that merged into an invalid contract),createprinted 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 --templateandcreateshare a single definition of a "valid template" (merge_onto_default), so they can never disagree.
Install
cargo install apic-cliOr 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