Repository navigation
Document the under_minimum_age refusal for athletes - #59
Merged
Merged
Conversation
Saturday is for athletes 14 and up. Athlete create, update and batch create refuse a year_of_birth under that with 400 under_minimum_age, param year_of_birth, a message naming the minimum, and nothing saved; an update's year_of_birth must be a whole number. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aek3ta37FJ1uNY9tsKN7Zb Ci-From: linux Ci-Session: 2f7dde44-6453-4443-8eb6-ed6139599bb2
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.
Saturday is for athletes 14 and up. Since fuel-backend #1409, partner athlete create, update (
PATCH /v1/athletes/{id}) and batch create refuse ayear_of_birththat makes the athlete younger than 14 (current year minus birth year). This documents it.guides/athletes.mdx: the field table notes the minimum; a paragraph after the range rules gives the refusal (400, codeunder_minimum_age, paramyear_of_birth, message naming the minimum, nothing saved) with the real error envelope, and that an update'syear_of_birthmust be a whole number (invalid_valueotherwise).guides/batch-operations.mdx: an under-age item fails withunder_minimum_age, its message naming the minimum.The minimum is in the error message; the partner API error envelope has no separate
minimum_agefield (that field exists on Saturday's own hosted-onboarding page response, which partners do not call).Checked:
scripts/check-docs-drift.pyagainst fuel-backend with the catalog entry (fuel-backend #1421): clean.scripts/test-response-examples.py: passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01Aek3ta37FJ1uNY9tsKN7Zb