Standardize response schemas across endpoints #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Different endpoints do not always present similarly-shaped payloads, which makes client code more error-prone than it should be. A live example: OCR results were nested under
result.blocks, while it was easy to assume a flatter top-levelblocksshape.Desired improvement
Standardize response envelopes as much as possible across endpoints, especially for the main machine-readable payloads.
Why
Agents and clients should not need endpoint-specific guessing for basic fields like result data, candidates, metadata, and errors.
Nice extras