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:
@@ -112,6 +112,9 @@ func NewCmdList(f *cmdutil.Factory) *cobra.Command {
|
||||
if resp.Node == nil {
|
||||
return nil, fmt.Errorf("cookie category %s not found", flagCategoryID)
|
||||
}
|
||||
if resp.Node.Typename != "CookieCategory" {
|
||||
return nil, fmt.Errorf("expected CookieCategory node, got %s", resp.Node.Typename)
|
||||
}
|
||||
return &resp.Node.CookiePatterns, nil
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user