Skip to content

cf email-domains changes drops top-level platform metadata #510

Closed as not planned

Description

@petebacondarwin

Problem

cf email-domains changes drops the API response's required top-level platform data when unwrapping the Cloudflare response envelope. Callers receive the result payload but cannot access this additional response metadata.

This is the remaining follow-up from #20 (comment), originally identified in #447 (comment).

Current behavior

At main commit a0eed39e2e506c3a55060060f0871460015434b0, unwrapEnvelope() returns only { result, result_info } for array results, or the result with separately retained result_info for object results. Other top-level fields, including platform, are discarded before formatting.

The affected command calls GET /accounts/{account_id}/email/domain-changes; see its generated operation.

Expected behavior

Preserve and expose the top-level platform data so callers of cf email-domains changes can access the response information defined by the API. Account for existing JSON stdout compatibility when choosing how to expose it, and add regression coverage for retaining the field through envelope unwrapping and CLI formatting.

Scope

Pagination metadata is already addressed by #478, merged as f3ebc1e. It exposes result_info, including next_cursor, has_more, and page counts, on stderr while preserving stdout payloads. This issue tracks the remaining loss of top-level platform data; automatic pagination is outside its scope.

Activity

  1. petebacondarwin commented on Nov 16, 2026

    @petebacondarwin
    CollaboratorAuthor

    Closing as this command was removed and so the problem has gone away (for now...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions