Repository navigation
Code examples that run as copied, and page statements matched to the SDKs - #99
Merged
Merged
Conversation
Guard optional precision and Retry-After, add status checks and batch error handling, store rotated OAuth tokens, correct error catalog details, and align response examples with the SDK types and fixtures.
…etry-After The settings-scale wording goes back to "1, 3, 5, 7 or 9": PR #98 sets those values on purpose. A daily ceiling with no Retry-After header (older API) still schedules after midnight UTC, as saturday-node's RateLimitError treats it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Single athlete create takes no required field (pkg/api/athletes.go); only a batch item needs one of name, email or external_id (pkg/api/batch.go, missing_identifier). - The export carries conversations when the athlete has any (pkg/api/gdpr.go, gdpr_types.go: conversations, omitted when empty), so both pages name them again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for code examples a partner would copy and break on, and for page statements both SDKs and their fixtures contradict. Muse (Meta Muse Code, Meta training off) wrote it in a code lane. A Claude read the whole diff, checked each fix against saturday-node and saturday-python source and fixtures, fixed two of Muse's changes, and reran
test-response-examples.py,check-engine-constants.pyandcheck-app-claims.py(all pass). The drift check needs fuel-backend and was not run here. No landing label: this repo's content owner decides.Examples fixed
Retry-Afterno longer raisesKeyError(Python) or retries at once (TypeScript). A daily ceiling with no header still schedules after midnight UTC.timingSafeEqualcall checks lengths first. The re-enable curl sendsContent-Type: application/json.errors.is_race_eventandmeal_before_min, which the page says exact numbers need.prescriptionon an activity calculation.https://saturday.fitin place of an invented/subscribe?ref=link.requestscall passestimeout=30. Bare routes in bash blocks became curl. The Quickstart says the TypeScript snippets need an ES module.attribution,safety, totals, stored athlete fields).Page statements corrected (both SDKs and fixtures disagree with the page)
precisionis read when present; contract samples omit it on some answers.plan_basis.sourceaddstrial_allowanceandsimulation_allowance(both SDKs).onboarding.url(sandbox only).documentation_urlexamples use the catalog's guide URLs. Error Handling names the catalog'snot_foundcode.Kept as they were after review against fuel-backend's code (lead CORE-CALC, 2026-11-22)
pkg/api/athletes.go); only a batch item needs one ofname,emailorexternal_id(pkg/api/batch.go). The page now says both. The SDK comments that call an identifier required on single create are the side to correct.pkg/api/gdpr.go; the key is omitted when empty, which is why the SDK fixture lacks it). Both pages name them again.service_unavailable(pkg/gateway/middleware.go);onboarding.urlis sandbox only (hostedOnboardingLinked);plan_basis.sourcehastrial_allowanceandsimulation_allowance;precisionis optional on the wire.For your call
service_unavailable(the catalog pairsinternal_errorwith 500). The other fix would be keepinginternal_errorand saying 500.sweat_level: 6, so the page and the schema still differ.SDK or fixture side, untouched (for the SDK owners)
trial_ends_at, fuelingupdated_atand webhookcreated_at. Live captures and the docs use seconds.attribution.required: falsein all 13 objects; live hastruein 11 of 11.product_not_foundandmissing_identifier, and marks the daily 429 codesretryable: true.organizations.list()takes nolimitorcursorin either SDK.batchCalculatecannot sendestimate_onlyor return headers.activities.listtolimit=20; the docs say 50.registerWebhooksends noeventsin Node and[]in Python.Unsettled, no change
start_date, infer bricksegments, the coach webhook eventid, coach event names in the TypeScript types, server acceptance ofestimate_only, onboarding age bounds,productsandnutritiongating on product routes, and ignored-versus-refused server-owned PATCH fields. No fixture settles any of these.POST /v1/nutrition/extractships in both SDKs and has no page.🤖 Generated with Claude Code