Skip to content

E11.1 — Document every public result read's payload (Arrow and JSON) #1234

Done

Description

@athvin

API product implementation work · part of #521 (E11) · child 1 of 6.

Probe (2026-11-25, openapi.public.json on main)

GET /v1/orgs/{org}/datasets/{ds}/golden-records is documented as application/vnd.apache.arrow.stream, type: string, format: binary: the customer gets a binary stream whose columns the contract does not name. duplicates is JSON but documented at envelope granularity. golden-records/{entity_id} likewise. These are the reads E11 is about, and the contract cannot tell a client generator what is in them.

Scope

  • Each result read documents its payload: a typed JSON schema, or the Arrow schema's fields and types written into the operation (via a documented extension or a description generated from the Arrow schema — derived, never hand-written).
  • Decide whether the public result reads also serve application/json through content negotiation (the BFF already decodes Arrow for the UI). Record the decision either way.
  • Stable identifiers named in the schema: entity_id, source record key, dataset, and the snapshot the page was read at.

Acceptance

Public OpenAPI names every field of golden-records, golden-record detail and duplicates. A breaking change to one of them is caught by er-openapi-check. A test fails if a result read regresses to an undocumented binary/envelope body.

Metadata

Metadata

Assignees

Labels

mvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions