v0.5.0
Released 22 August 2026.
Install
go install github.com/caspel26/goninja/cmd/goninja@v0.5.0
go get github.com/caspel26/goninja@v0.5.0Requires Go 1.25 or newer.
Added
Declare auth beside each action
Action.Auth lets a custom action state its access decision where the action
is declared. Config.StrictAuth turns missing decisions into a startup error,
including for CRUD routes; RouteAuth{Public: true} remains an explicit public
decision. This makes an omitted policy visible before the API serves traffic.
Attach actions at resource construction
Generated New<Model>Resource constructors now accept options without
breaking existing calls. goninja.Actions provides a compact way to attach an
action builder while constructing the resource instead of requiring a separate
SetActions call.
Fixed
Filter time.Time with RFC 3339
A filter-tagged time.Time field now generates a proper RFC 3339 parser and
imports time when needed. Previously it generated an invalid integer-style
conversion and failed to compile.