Expand description
Shared validation for public read API query contracts.
Structs§
- Public
Challenge Catalog Query - Validated public challenge catalog query.
- Public
Pagination - Bounded pagination parameters for a public collection endpoint.
Constants§
- DEFAULT_
PUBLIC_ CHALLENGE_ LIST_ LIMIT - Default public challenge catalog page size.
- DEFAULT_
PUBLIC_ LEADERBOARD_ LIMIT - Default leaderboard page size.
- DEFAULT_
PUBLIC_ SUBMISSION_ LIST_ LIMIT - Default visible public solution submission page size.
- MAX_
PUBLIC_ LIST_ LIMIT - Maximum page size for public list-style reads.
Functions§
- bounded_
public_ limit - Validate a public list limit without silently widening expensive reads.
- bounded_
public_ offset - Validate a public list offset without allowing negative pagination cursors.
- public_
pagination - Validate limit and offset together for public list endpoints.
- resolve_
optional_ public_ target - Resolve an optional public target filter against the challenge spec.
- resolve_
required_ public_ target - Resolve an explicit public target query against the challenge spec.