Fix PR review comments and rename versions to latest-version

- Validate __typename in all list command pagination callbacks
- Serialize PostHogConsent=false as explicit false (not nil)
- Fix maxAgeSeconds factory to only include when value is an int
- Rename cookie-banner versions to latest-version subcommand

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-01 15:38:43 +04:00
parent 08aaab1393
commit d133d5ba1d
8 changed files with 23 additions and 16 deletions

View File

@@ -20,11 +20,7 @@ import (
)
func NewCookieCategory(c *coredata.CookieCategory) *CookieCategory {
var posthogConsent *bool
if c.PostHogConsent {
v := true
posthogConsent = &v
}
posthogConsent := &c.PostHogConsent
return &CookieCategory{
ID: c.ID,