kanboard-api is a type-safe, idiomatic Go client library for the Kanboard (https://kanboard.org) API.
Find a file
Oliver Jakoubek dbac08ac1e Implement Timestamp type for Unix timestamp JSON handling
Add custom Timestamp type that wraps time.Time for Kanboard's
Unix timestamp format:

UnmarshalJSON supports:
- Unix timestamps as integers
- Empty strings and "0" strings as zero time
- Null values as zero time
- Numeric strings (e.g., "1609459200")

MarshalJSON returns:
- 0 for zero time
- Unix timestamp for non-zero time

Includes comprehensive tests for round-trip marshaling
and struct embedding scenarios.

Closes: kanboard-api-25y
2026-01-15 18:15:33 +01:00
.beads Implement Timestamp type for Unix timestamp JSON handling 2026-01-15 18:15:33 +01:00
.gitattributes Initial commit 2026-01-15 17:48:46 +01:00
.gitignore Initial commit 2026-01-15 17:48:46 +01:00
AGENTS.md Initial commit 2026-01-15 17:48:46 +01:00
auth.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
auth_test.go Add authentication system tests 2026-01-15 18:11:48 +01:00
client.go Complete Client struct with fluent configuration 2026-01-15 18:14:22 +01:00
client_test.go Complete Client struct with fluent configuration 2026-01-15 18:14:22 +01:00
errors.go Implement comprehensive error types and handling 2026-01-15 18:13:09 +01:00
errors_test.go Implement comprehensive error types and handling 2026-01-15 18:13:09 +01:00
go.mod Initial commit 2026-01-15 17:48:46 +01:00
jsonrpc.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
jsonrpc_test.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
timestamp.go Implement Timestamp type for Unix timestamp JSON handling 2026-01-15 18:15:33 +01:00
timestamp_test.go Implement Timestamp type for Unix timestamp JSON handling 2026-01-15 18:15:33 +01:00