v0.2.1
apic v0.2.1
A patch release that fixes opening the project template in the interactive TUI.
🐛 Bug fixes
apic open --template no longer fails to open the TUI (#15)
Running apic open --template aborted before the editor could start:
Error: /path/to/.apic/template.json is not a valid contract: missing field `name` at line 87 column 1
Root cause
.apic/template.json is a partial overlay — by design it only carries the
fields a project wants to override, so required fields such as name are
usually absent. The open --template path parsed that file directly as if it
were a complete contract, so any partial template failed validation and the TUI
never launched.
Fix
The template is now merged onto the built-in default before it is parsed,
so every required field is present:
- The partial
.apic/template.jsonis overlaid onto the embedded
contract.jsondefault (overlay values win; the default fills every gap),
then validated and handed to the TUI as a complete contract. - The merge helper (
template::merge_onto_default) is reused for this path
instead of the create-time seeder, which intentionally blanks the built-in's
scalar values and was the wrong tool for editing an existing template. apic open -f <contract>continues to read and parse the targeted file
directly, unaffected by this change.
📦 Changes
- fix: open template on tui not working (#15)
Full changelog: v0.2.0...v0.2.1
⬇️ Installation
Prebuilt binaries are attached below for Linux, macOS, and Windows. Each
archive ships with a matching .sha256 checksum.
| Platform | Asset |
|---|---|
| Linux (x86_64) | apic-v0.2.1-x86_64-unknown-linux-gnu.tar.gz |
| Linux (aarch64) | apic-v0.2.1-aarch64-unknown-linux-gnu.tar.gz |
| macOS (Intel) | apic-v0.2.1-x86_64-apple-darwin.tar.gz |
| macOS (Apple Silicon) | apic-v0.2.1-aarch64-apple-darwin.tar.gz |
| Windows (x86_64) | apic-v0.2.1-x86_64-pc-windows-msvc.zip |
Example (Linux/macOS):
tar -xzf apic-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
./apic --version # apic 0.2.1Or build from source:
cargo install --git https://github.com/rizukirr/apic --tag v0.2.1