docs(spec): document REQUEST_ID_MISSING error code (401)#508
Conversation
Follow-up to PR #500. webdev PR #27767 added a new REQUEST_ID_MISSING ErrorCode (401) so that signed-retry endpoints can distinguish 'I forgot the Grid-Wallet-Signature header' from 'I forgot the Request-Id header'. SDK clients need this in the Error401 enum to surface the distinction. Refs AT-5342
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✱ Stainless preview builds for gridThis PR will update the cli csharp go kotlin openapi php python ruby typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-openapi studio · code · diff
✅ grid-ruby studio · code · diff
✅ grid-go studio · code · diff
✅ grid-typescript studio · code · diff
✅ grid-kotlin studio · code · diff
✅ grid-python studio · code · diff
✅ grid-csharp studio · code · diff
|
Greptile SummaryAdds the
Confidence Score: 5/5Safe to merge — the change is purely additive documentation, adding a new enum value and description row to the 401 error schema with consistent updates across the source and both generated bundles. The edit touches only the error code description table and enum in three files (one source, two generated bundles). Both bundles match the source exactly, no pre-existing enum values are modified, and the new description accurately reflects the complementary failure mode described in the PR. No files require special attention.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/errors/Error401.yaml | Adds REQUEST_ID_MISSING to the error code description table and enum; source of truth for the bundled files. |
| openapi.yaml | Generated bundle re-built from openapi/; mirrors the Error401.yaml change consistently. |
| mintlify/openapi.yaml | Mintlify copy of the generated bundle; change is identical to openapi.yaml, no drift. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Signed-retry request received] --> B{Request-Id header present?}
B -- No --> C[401 REQUEST_ID_MISSING\nGrid-Wallet-Signature present\nbut Request-Id missing]
B -- Yes --> D{Grid-Wallet-Signature header present?}
D -- No --> E[401 WALLET_SIGNATURE_MISSING\nRequest-Id present\nbut Grid-Wallet-Signature missing]
D -- Yes --> F{Signature valid?}
F -- Malformed --> G[401 WALLET_SIGNATURE_MALFORMED]
F -- Body mismatch --> H[401 WALLET_SIGNATURE_BODY_MISMATCH]
F -- Invalid --> I[401 WALLET_SIGNATURE_INVALID]
F -- Valid --> J[Request proceeds]
Reviews (1): Last reviewed commit: "docs(spec): document REQUEST_ID_MISSING ..." | Re-trigger Greptile
Summary
Follow-up to grid-api #500 (merged). webdev PR #27767 (AT-5342) added a new `REQUEST_ID_MISSING` ErrorCode (401) on the server so that signed-retry endpoints can distinguish two failure modes that were previously lumped under `WALLET_SIGNATURE_MISSING`:
Kevin's review on the server PR pointed out that lumping these under one code defeats the point of having specific subcodes. The server change is in; this PR brings the spec into sync so the SDKs can learn the new code.
Files
Test plan
Refs AT-5342 under epic AT-5324