{"openapi":"3.1.0","info":{"title":"Footwear ID Public API","version":"1.0","description":"Public machine-readable access to a personal footwear collection, wearing experience, and foot measurements. Public read-only access; no API key or authentication required. Only published shoes and their photos are visible. CORS allows all origins without credentials. The JSON endpoints and both AI Instructions text aliases share 60 requests per minute; photos have a separate 300 requests per minute. Limits currently apply to one shared unidentified-visitor bucket until trusted per-client identification is enabled. Client-supplied forwarding headers are not trusted by default. Enforcement precedes data reads; the limiter fails open on internal failure. Cached photos do not reach the limiter. The two OpenAPI addresses serve the same static document without using the data allowance. /api/public/* bypasses hosting sign-in restrictions; root aliases follow main-site visibility."},"servers":[{"url":"https://footwearid.lovable.app","description":"Configured public site address"}],"security":[],"paths":{"/api/public/pdupd-customization":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getPdupdProject","summary":"Active independent editorial project","description":"No query parameters. Ordered models, exactly eight gallery originals, six homepage photos and a cover. No personal review ratings or shoe slugs. Shares a separate 60/minute project metadata bucket; inactive content returns indistinguishable no-store 404. Original-only metadata and hashes do not establish image safety.","responses":{"200":{"description":"Active project","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdupdProjectResponse"}}}},"400":{"description":"Unsupported query","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"404":{"description":"PROJECT_NOT_FOUND","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/pdupd-customization/{id}":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getPdupdModel","summary":"One active independent customization model","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Model UUID, not a shoe slug. No query parameters. Shares project metadata 60/minute allowance.","responses":{"200":{"description":"Independent model","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdupdModelResponse"}}}},"400":{"description":"Unsupported query","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"404":{"description":"PROJECT_NOT_FOUND","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/pdupd-photos/{imageId}":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getPdupdPhoto","summary":"Active selected editorial original","parameters":[{"name":"imageId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Original only, no transformations or query parameters. JPEG/PNG/WebP/AVIF declared MIME; nosniff, public one-day cache and visitor RLS, no signed redirect. Separate 120/minute allowance. Unknown, pending, inactive and deselected images return the same 404. Downloaded copies cannot be revoked.","responses":{"200":{"description":"Original bytes","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"const":"public, max-age=86400, s-maxage=86400","type":"string"}},"X-Content-Type-Options":{"schema":{"const":"nosniff","type":"string"}}},"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/avif":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Unsupported query","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"404":{"description":"PROJECT_NOT_FOUND","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/shoes":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getCollection","summary":"List all published shoes","description":"Returns visible published shoes including full personal_notes in one request, without needing an individual request per shoe. Notes are the current stored text, not excerpts; null and empty strings are preserved. After filtering, orders by love_rating descending, created_at (Date Added, returned as added_at) descending, then database id ascending as a deterministic final tie-breaker. Internal IDs are not exposed in the response. No pagination. Optional filters combine with AND logic. Valid filters with no matches return count 0 and shoes []. Unknown query parameters are ignored. Nullable collection fields are present as null, unlike the detail endpoint's omitted optional fields. collection_updated_at remains the timestamp for the whole collection. pdupd_customization is a separate unfiltered active-model object; empty models while inactive; count and shoes remain regular-shoe only.","parameters":[{"name":"brand","in":"query","required":false,"schema":{"type":"string"},"example":"Nike","description":"Case-insensitive exact brand equality, never substring matching. Any literal string is accepted; no fixed enum, trimming or wildcard expansion. Empty string matches only an empty brand. If repeated, the first value is used."},{"name":"category","in":"query","required":false,"schema":{"type":"string"},"example":"Lifestyle","description":"Case-insensitive exact category equality, never substring matching. Any literal string is accepted, including saved legacy categories; no fixed enum, trimming or wildcard expansion. Empty string does not match null. If repeated, the first value is used."},{"name":"min_love_rating","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":10},"example":8,"description":"Inclusive minimum for the author's personal Love Rating. Supply exactly one integer written as 1 through 10. Empty values, decimals, signs, whitespace, leading zeroes, repeated values and out-of-range values return HTTP 400."}],"responses":{"200":{"description":"Published collection, or an empty shoes array when no matches.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCollectionResponse"}}}},"400":{"description":"INVALID_QUERY_PARAMETER: min_love_rating must be a single integer from 1 to 10.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Collection query failure uses a string error; unexpected exceptions use a structured INTERNAL_ERROR.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CollectionLoadError"},{"$ref":"#/components/schemas/StructuredApiError"}]}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/shoes/{slug}":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getShoe","summary":"Get a published shoe and related pairs","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","maxLength":200,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":"Permanent database-generated shoe slug. Invalid, missing and draft shoes all return the same 404."}],"responses":{"200":{"description":"Shoe detail.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndividualShoeResponse"}}}},"404":{"description":"SHOE_NOT_FOUND: unavailable, unpublished or invalid slug.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/shoe-dna":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getShoeDna","summary":"Get published-collection analytics and foot measurements","description":"Shares aggregation with the Shoe DNA page. No query filters. A shoe record is one model/colorway; published_shoe_count counts records (published_pair_count is its deprecated alias), lifetime_pair_count sums total_pairs_owned and current_pair_count sums current_pairs_owned. Six sections have lifetime/current physical-pair views: brand_dna_by_ownership, most_loved_brands_by_ownership, color_dna_by_ownership, wearing_habits_by_ownership, collection_composition_by_ownership and collectible_dna_by_ownership. Legacy color_dna, wearing_habits, collection_composition and collectible_dna count records; brand_dna is lifetime-pair based; most_loved_brands averages one Love Rating per unique rated shoe record (never pair-weighted) with dense ranks and separate shoe_count, rated_shoe_count, pair_count and extra_pair_count; size_profile is record-based. Those six sections and their legacy record-based counterparts exclude pdupd.co Customization records (professional design projects, not personal consumption) and divide percentages by the remaining personal totals; collectible_dna, collectible_dna_by_ownership, published_pair_count, lifetime_pair_count and current_pair_count always cover the full published collection. Foot profile is null if unavailable; individual measurements may be null. Does not expose the original drawing or legacy cm measurements. All legacy fields remain shoe-only, including pdupd_collaborations_pair_count; independent models contribute only to additive collection_totals and pdupd_project_by_ownership. Six consumption sections exclude independent project models. The website headline uses combined lifetime pairs and its dedicated pdupd tile counts project model pairs.","responses":{"200":{"description":"Analytics and eight mm measurements.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoeDnaResponse"}}}},"429":{"description":"Shared JSON allowance exceeded (RATE_LIMIT_EXCEEDED).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/photos/{photo_id}":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getPhoto","summary":"Retrieve a stable published-photo URL","description":"Streams original bytes without exposing storage paths. URL stays stable; unpublishing revokes access on uncached requests. Successful responses may remain cached for up to 86400 seconds. Database/storage lookup failures are also treated as 404.","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"responses":{"200":{"description":"Original image bytes with stored content type (application/octet-stream fallback).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"type":"string","const":"public, max-age=86400, s-maxage=86400"}},"Cross-Origin-Resource-Policy":{"schema":{"type":"string","const":"cross-origin"}},"X-Content-Type-Options":{"schema":{"type":"string","const":"nosniff"}}},"content":{"image/*":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Not found, unpublished, invalid UUID or unavailable storage file.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Photo allowance exceeded; plain text, not a structured JSON error.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}},"/api/public/ai-instructions.txt":{"get":{"security":[],"tags":["Public read-only API"],"operationId":"getAiInstructions","summary":"Get the current saved AI Instructions","description":"Same saved text as /ai-instructions.txt. UTF-8 plain text, never HTML. No-store; empty saved content yields an empty 200 response, not an invented fallback. Shares the JSON rate allowance despite its plain-text format.","responses":{"200":{"description":"Current saved instructions.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Too many requests. Try again later.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Retry-After":{"description":"Seconds until the current minute window ends.","schema":{"type":"string","pattern":"^[0-9]+$"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Unexpected failure (INTERNAL_ERROR).","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredApiError"}}}},"503":{"description":"Couldn't load AI Instructions; no-store plain text.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}},"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"text/plain":{"schema":{"type":"string"}}}}}},"options":{"summary":"CORS preflight (not rate limited)","security":[],"responses":{"204":{"description":"GET/OPTIONS permitted; no credentials. Accept and Content-Type request headers permitted; preflight cached for 86400 seconds.","headers":{"Access-Control-Allow-Origin":{"description":"Credential-free CORS; any origin.","schema":{"type":"string","const":"*"}}}}}}}},"components":{"schemas":{"PdupdModel":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"brand":{"type":"string"},"model":{"type":"string"},"colorway":{"anyOf":[{"type":"string"},{"type":"null"}]},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"release_year":{"anyOf":[{"type":"integer"},{"type":"null"}]},"official_product_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"total_pairs_owned":{"type":"integer","minimum":1,"description":"Total physical pairs of this exact model and colorway the author has ever owned, including current and past pairs. Each model/colorway is a single shoe record regardless of how many identical pairs were owned."},"current_pairs_owned":{"type":"integer","minimum":0,"description":"Currently owned physical pairs of this model/colorway, at most total_pairs_owned. in_collection is derived as current_pairs_owned > 0. Never infer this count from lifetime ownership."},"in_collection":{"type":"boolean","description":"Whether any physical pair of this model/colorway is currently owned; derived as current_pairs_owned > 0. true means currently owned; false means previously owned and no longer in the current wardrobe. Historical pairs stay published and remain reachable through this API. A false value carries no information about satisfaction, fit, or the reason the pair left the collection."}},"required":["id","brand","model","colorway","sku","release_year","official_product_url","total_pairs_owned","current_pairs_owned","in_collection"],"additionalProperties":false},"PdupdPhoto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"}},"required":["id","url"],"additionalProperties":false},"PdupdStory":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["text"],"additionalProperties":false}}},"PdupdProject":{"type":"object","properties":{"project_url":{"type":"string","format":"uri"},"story":{"$ref":"#/components/schemas/PdupdStory"},"models":{"type":"array","items":{"$ref":"#/components/schemas/PdupdModel"}},"gallery":{"type":"array","items":{"$ref":"#/components/schemas/PdupdPhoto"}},"homepage":{"type":"object","properties":{"eyebrow":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"photos":{"type":"array","items":{"$ref":"#/components/schemas/PdupdPhoto"}}},"required":["eyebrow","title","subtitle","photos"],"additionalProperties":false},"card":{"type":"object","properties":{"eyebrow":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"cover":{"anyOf":[{"$ref":"#/components/schemas/PdupdPhoto"},{"type":"null"}]}},"required":["eyebrow","title","subtitle","cover"],"additionalProperties":false}},"required":["project_url","story","models","gallery","homepage","card"],"additionalProperties":false},"PdupdProjectResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PdupdProject"},"meta":{"$ref":"#/components/schemas/ResponseMetadata"}},"required":["data"],"additionalProperties":false},"PdupdModelResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PdupdModel"},"meta":{"$ref":"#/components/schemas/ResponseMetadata"}},"required":["data"],"additionalProperties":false},"Size":{"type":"object","properties":{"system":{"type":"string","enum":["US","UK","EU","CM"]},"value":{"type":"string","description":"Original stored shoe size, including decimals; never converted between systems. CM shoe sizes are distinct from foot measurements in mm."}},"required":["system","value"],"additionalProperties":false},"Photo":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"position":{"type":"integer","minimum":1,"description":"One-based position, primary photo first then display order."},"is_primary":{"type":"boolean"}},"required":["url","position","is_primary"],"additionalProperties":false},"RelatedShoe":{"type":"object","properties":{"slug":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"love_rating":{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},"colorway":{"type":"string"},"primary_photo_url":{"type":"string","format":"uri"},"page_url":{"type":"string","format":"uri","description":"Absolute public shoe page URL on the configured public site address."}},"required":["slug","brand","model","love_rating","page_url"],"additionalProperties":false},"CollectionShoe":{"type":"object","properties":{"slug":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"love_rating":{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},"colorway":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"type":"object","properties":{"system":{"type":"string","enum":["US","UK","EU","CM"]},"value":{"type":"string","description":"Original stored shoe size, including decimals; never converted between systems. CM shoe sizes are distinct from foot measurements in mm."}},"required":["system","value"],"additionalProperties":false},"fit_rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},{"type":"null"}]},"comfort_rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},{"type":"null"}]},"breathability":{"anyOf":[{"type":"integer","minimum":1,"maximum":10,"description":"Personal breathability rating on a 1–10 scale."},{"type":"null"}]},"rare_collectible":{"type":"boolean","description":"Same value as rare_and_collectible on the individual shoe endpoint (legacy collection field name). The collection list does not include collaboration; use the individual shoe endpoint for it."},"pdupd_collaboration":{"type":"boolean"},"in_collection":{"type":"boolean","description":"Whether any physical pair of this model/colorway is currently owned; derived as current_pairs_owned > 0. true means currently owned; false means previously owned and no longer in the current wardrobe. Historical pairs stay published and remain reachable through this API. A false value carries no information about satisfaction, fit, or the reason the pair left the collection."},"total_pairs_owned":{"type":"integer","minimum":1,"description":"Total physical pairs of this exact model and colorway the author has ever owned, including current and past pairs. Each model/colorway is a single shoe record regardless of how many identical pairs were owned."},"current_pairs_owned":{"type":"integer","minimum":0,"description":"Currently owned physical pairs of this model/colorway, at most total_pairs_owned. in_collection is derived as current_pairs_owned > 0. Never infer this count from lifetime ownership."},"release_year":{"anyOf":[{"type":"integer"},{"type":"null"}]},"official_product_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"personal_notes":{"anyOf":[{"type":"string","description":"Full stored Personal Notes, without truncation, summarization or conversion; paragraph breaks are preserved. May combine product context and personal experience; do not treat absent notes as a negative evaluation."},{"type":"null"}]},"photo_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"added_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"page_url":{"type":"string","format":"uri","description":"Absolute public shoe page URL on the configured public site address."}},"required":["slug","brand","model","love_rating","colorway","category","size","fit_rating","comfort_rating","breathability","rare_collectible","pdupd_collaboration","in_collection","total_pairs_owned","current_pairs_owned","release_year","official_product_url","personal_notes","photo_url","added_at","updated_at","page_url"],"additionalProperties":false},"PublicCollectionResponse":{"type":"object","properties":{"collection_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"count":{"type":"integer","minimum":0},"shoes":{"type":"array","items":{"$ref":"#/components/schemas/CollectionShoe"}},"pdupd_customization":{"type":"object","properties":{"project_url":{"type":"string","format":"uri"},"models":{"type":"array","items":{"$ref":"#/components/schemas/PdupdModel"}}},"required":["project_url","models"],"additionalProperties":false,"description":"Independent pdupd.co Customization models, listed separately. They are not shoe records, are never counted in count or shoes, and have no slugs or Love ratings."}},"required":["collection_updated_at","count","shoes","pdupd_customization"],"additionalProperties":false},"IndividualShoe":{"type":"object","properties":{"slug":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"love_rating":{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},"colorway":{"type":"string"},"category":{"type":"string"},"sku":{"type":"string","description":"Exact stored SKU; do not normalize."},"release_year":{"type":"integer"},"official_product_url":{"type":"string","format":"uri"},"primary_color":{"type":"string"},"secondary_colors":{"type":"array","items":{"type":"string"}},"size":{"type":"object","properties":{"system":{"type":"string","enum":["US","UK","EU","CM"]},"value":{"type":"string","description":"Original stored shoe size, including decimals; never converted between systems. CM shoe sizes are distinct from foot measurements in mm."}},"required":["system","value"],"additionalProperties":false},"shoe_size_cm":{"type":"number","description":"Present only for a finite numeric size stored in CM. No conversion is performed."},"fit_rating":{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},"comfort_rating":{"type":"integer","minimum":1,"maximum":10,"description":"Author's personal experience on a 1–10 scale, not an objective product score. Missing data is not a negative evaluation."},"breathability":{"type":"integer","minimum":1,"maximum":10,"description":"Personal breathability rating on a 1–10 scale."},"wear_frequency":{"type":"string"},"seasons":{"type":"array","items":{"type":"string"}},"weather_conditions":{"type":"array","items":{"type":"string"}},"occasions":{"type":"array","items":{"type":"string"}},"personal_notes":{"type":"string","description":"Full stored Personal Notes, without truncation, summarization or conversion; paragraph breaks are preserved. May combine product context and personal experience; do not treat absent notes as a negative evaluation."},"rare_and_collectible":{"type":"boolean","description":"Same value as rare_collectible in the collection list."},"collaboration":{"type":"boolean"},"pdupd_collaboration":{"type":"boolean"},"in_collection":{"type":"boolean","description":"Whether any physical pair of this model/colorway is currently owned; derived as current_pairs_owned > 0. true means currently owned; false means previously owned and no longer in the current wardrobe. Historical pairs stay published and remain reachable through this API. A false value carries no information about satisfaction, fit, or the reason the pair left the collection."},"total_pairs_owned":{"type":"integer","minimum":1,"description":"Total physical pairs of this exact model and colorway the author has ever owned, including current and past pairs. Each model/colorway is a single shoe record regardless of how many identical pairs were owned."},"current_pairs_owned":{"type":"integer","minimum":0,"description":"Currently owned physical pairs of this model/colorway, at most total_pairs_owned. in_collection is derived as current_pairs_owned > 0. Never infer this count from lifetime ownership."},"photos":{"type":"array","items":{"$ref":"#/components/schemas/Photo"}},"added_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"page_url":{"type":"string","format":"uri","description":"Absolute public shoe page URL on the configured public site address."},"other_colorways":{"type":"array","items":{"$ref":"#/components/schemas/RelatedShoe"}},"similar_pairs":{"type":"array","items":{"$ref":"#/components/schemas/RelatedShoe"}}},"required":["slug","brand","model","love_rating","size","rare_and_collectible","collaboration","pdupd_collaboration","in_collection","total_pairs_owned","current_pairs_owned","added_at","updated_at","page_url","other_colorways","similar_pairs"],"additionalProperties":false,"description":"Null, blank-string and empty-array optional values are omitted, not returned as null. Explicit false and zero are retained. Related arrays always exist. Photos are omitted if empty. Only published related shoes are returned; other colorways share brand and model case-insensitively and exclude the current shoe."},"ResponseMetadata":{"type":"object","properties":{"schema_version":{"type":"string","const":"1.0"},"last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["schema_version","last_updated"],"additionalProperties":false},"IndividualShoeResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/IndividualShoe"},"meta":{"$ref":"#/components/schemas/ResponseMetadata"}},"required":["data","meta"],"additionalProperties":false},"FootMeasurement":{"type":"object","properties":{"left_mm":{"anyOf":[{"type":"number","description":"Left foot body measurement in millimeters, not a shoe size."},{"type":"null"}]},"right_mm":{"anyOf":[{"type":"number","description":"Right foot body measurement in millimeters, not a shoe size."},{"type":"null"}]}},"required":["left_mm","right_mm"],"additionalProperties":false},"FootProfileMeasurements":{"type":"object","properties":{"foot_length":{"$ref":"#/components/schemas/FootMeasurement"},"oblique_girth":{"$ref":"#/components/schemas/FootMeasurement"},"instep_girth":{"$ref":"#/components/schemas/FootMeasurement"},"ball_girth":{"$ref":"#/components/schemas/FootMeasurement"}},"required":["foot_length","oblique_girth","instep_girth","ball_girth"],"additionalProperties":false},"ShoeDna":{"type":"object","properties":{"collection_totals":{"type":"object","properties":{"shoe_record_count":{"type":"integer","minimum":0},"pdupd_model_record_count":{"type":"integer","minimum":0},"record_count":{"type":"integer","minimum":0},"lifetime_pair_count":{"type":"integer","minimum":0},"current_pair_count":{"type":"integer","minimum":0}},"required":["shoe_record_count","pdupd_model_record_count","record_count","lifetime_pair_count","current_pair_count"],"additionalProperties":false,"description":"Global catalogue totals. shoe_record_count counts published shoe records (catalogue entries, one per model/colorway); pdupd_model_record_count counts independent pdupd.co Customization models; record_count is their sum. lifetime_pair_count sums total_pairs_owned (every physical pair ever owned) and current_pair_count sums current_pairs_owned across both; this lifetime value is the homepage pair counter."},"pdupd_project_by_ownership":{"type":"object","properties":{"lifetime":{"type":"object","properties":{"pair_count":{"type":"integer","minimum":0}},"required":["pair_count"],"additionalProperties":false},"current":{"type":"object","properties":{"pair_count":{"type":"integer","minimum":0}},"required":["pair_count"],"additionalProperties":false}},"required":["lifetime","current"],"additionalProperties":false,"description":"Physical pairs of the independent pdupd.co Customization models. These models are not shoe records and are not included in any other ShoeDna section."},"published_shoe_count":{"type":"integer","minimum":0,"description":"Number of published shoe records (catalogue cards, one per model/colorway, regardless of how many identical physical pairs were owned)."},"published_pair_count":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated backwards-compatible alias of published_shoe_count. Despite its name it counts published shoe records, not physical pairs; use lifetime_pair_count or current_pair_count for pairs."},"lifetime_pair_count":{"type":"integer","minimum":0,"description":"Sum of total_pairs_owned across all published shoe records (including pdupd_collaboration records, excluding independent pdupd.co Customization models): every physical pair ever owned, current and past."},"most_loved_brands":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"Dense rank by average_love_rating as displayed (one decimal): equal displayed averages share a rank (1, 1, 2). Ties are listed alphabetically by brand."},"brand":{"type":"string"},"average_love_rating":{"type":"number","description":"Arithmetic mean of valid 1–10 Love Ratings over unique rated personal published shoe records of this brand (pdupd_collaboration excluded), rounded to one decimal. Each shoe card counts once; ratings are never weighted by physical pairs."},"shoe_count":{"type":"integer","minimum":1,"description":"Unique personal published shoe records of this brand."},"rated_shoe_count":{"type":"integer","minimum":1,"description":"Shoe records with a valid Love Rating; the denominator of average_love_rating."},"pair_count":{"type":"integer","minimum":0,"description":"Physical pairs: sum of total_pairs_owned for this brand."},"extra_pair_count":{"type":"integer","minimum":0,"description":"pair_count minus shoe_count: identical physical pairs beyond the first per shoe record. Indicates ownership of multiple identical pairs, not necessarily repeat purchases."}},"required":["rank","brand","average_love_rating","shoe_count","rated_shoe_count","pair_count","extra_pair_count"],"additionalProperties":false}},"brand_dna":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1},"brand":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Lifetime pairs owned of this brand (sum of total_pairs_owned across all colorways)."},"percentage":{"type":"number","description":"Share of lifetime personal physical pairs (pdupd_collaboration records excluded), rounded to one decimal; not lifetime_pair_count."}},"required":["rank","brand","pair_count","percentage"],"additionalProperties":false}},"current_pair_count":{"type":"integer","minimum":0,"description":"Sum of current_pairs_owned across all published shoe records (including pdupd_collaboration records, excluding independent pdupd.co Customization models)."},"color_dna_by_ownership":{"type":"object","properties":{"lifetime":{"type":"array","items":{"type":"object","properties":{"primary_color":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of lifetime personal physical pairs: the sum of total_pairs_owned over published records without pdupd_collaboration, including records without this label in the denominator; rounded to one decimal. This is not lifetime_pair_count, which also includes pdupd_collaboration records."}},"required":["primary_color","pair_count","percentage"],"additionalProperties":false}},"current":{"type":"array","items":{"type":"object","properties":{"primary_color":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of current personal physical pairs: the sum of current_pairs_owned over published records without pdupd_collaboration, including records without this label in the denominator; rounded to one decimal. This is not current_pair_count, which also includes pdupd_collaboration records."}},"required":["primary_color","pair_count","percentage"],"additionalProperties":false}}},"required":["lifetime","current"],"additionalProperties":false},"collection_composition_by_ownership":{"type":"object","properties":{"lifetime":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of lifetime personal physical pairs: the sum of total_pairs_owned over published records without pdupd_collaboration, including records without this label in the denominator; rounded to one decimal. This is not lifetime_pair_count, which also includes pdupd_collaboration records."}},"required":["category","pair_count","percentage"],"additionalProperties":false}},"current":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of current personal physical pairs: the sum of current_pairs_owned over published records without pdupd_collaboration, including records without this label in the denominator; rounded to one decimal. This is not current_pair_count, which also includes pdupd_collaboration records."}},"required":["category","pair_count","percentage"],"additionalProperties":false}}},"required":["lifetime","current"],"additionalProperties":false},"brand_dna_by_ownership":{"type":"object","properties":{"lifetime":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1},"brand":{"type":"string"},"pair_count":{"type":"integer","minimum":1,"description":"Sum of total_pairs_owned for this brand; brands with zero pairs are omitted."},"percentage":{"type":"number","description":"Share of lifetime personal physical pairs (pdupd_collaboration records excluded), rounded to one decimal; not lifetime_pair_count."}},"required":["rank","brand","pair_count","percentage"],"additionalProperties":false}},"current":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1},"brand":{"type":"string"},"pair_count":{"type":"integer","minimum":1,"description":"Sum of current_pairs_owned for this brand; brands with zero pairs are omitted."},"percentage":{"type":"number","description":"Share of current personal physical pairs (pdupd_collaboration records excluded), rounded to one decimal; not current_pair_count."}},"required":["rank","brand","pair_count","percentage"],"additionalProperties":false}}},"required":["lifetime","current"],"additionalProperties":false},"most_loved_brands_by_ownership":{"type":"object","properties":{"lifetime":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"Dense rank by average_love_rating as displayed (one decimal): equal displayed averages share a rank (1, 1, 2). Ties are listed alphabetically by brand."},"brand":{"type":"string"},"average_love_rating":{"type":"number","description":"Arithmetic mean of valid 1–10 Love Ratings over unique rated personal published shoe records of this brand (pdupd_collaboration excluded), rounded to one decimal. Each shoe card counts once; ratings are never weighted by physical pairs."},"shoe_count":{"type":"integer","minimum":1,"description":"Unique personal published shoe records of this brand."},"rated_shoe_count":{"type":"integer","minimum":1,"description":"Shoe records with a valid Love Rating; the denominator of average_love_rating."},"pair_count":{"type":"integer","minimum":0,"description":"Physical pairs: sum of total_pairs_owned for this brand."},"extra_pair_count":{"type":"integer","minimum":0,"description":"pair_count minus shoe_count: identical physical pairs beyond the first per shoe record. Indicates ownership of multiple identical pairs, not necessarily repeat purchases."}},"required":["rank","brand","average_love_rating","shoe_count","rated_shoe_count","pair_count","extra_pair_count"],"additionalProperties":false}},"current":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"Dense rank by average_love_rating as displayed (one decimal): equal displayed averages share a rank (1, 1, 2). Ties are listed alphabetically by brand."},"brand":{"type":"string"},"average_love_rating":{"type":"number","description":"Arithmetic mean of valid 1–10 Love Ratings over unique rated personal published shoe records of this brand with at least one currently owned pair (pdupd_collaboration excluded), rounded to one decimal. Each shoe card counts once; ratings are never weighted by physical pairs."},"shoe_count":{"type":"integer","minimum":1,"description":"Unique personal published shoe records of this brand with at least one currently owned pair."},"rated_shoe_count":{"type":"integer","minimum":1,"description":"Shoe records with a valid Love Rating; the denominator of average_love_rating."},"pair_count":{"type":"integer","minimum":0,"description":"Physical pairs: sum of current_pairs_owned for this brand."},"extra_pair_count":{"type":"integer","minimum":0,"description":"pair_count minus shoe_count: identical physical pairs beyond the first per shoe record. Indicates ownership of multiple identical pairs, not necessarily repeat purchases."}},"required":["rank","brand","average_love_rating","shoe_count","rated_shoe_count","pair_count","extra_pair_count"],"additionalProperties":false}}},"required":["lifetime","current"],"additionalProperties":false},"color_dna":{"type":"array","items":{"type":"object","properties":{"primary_color":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Legacy name: counts published shoe records (model/colorway), not physical pairs. Use the matching *_by_ownership field for physical pairs."},"percentage":{"type":"number","description":"Share of published personal shoe records (records with pdupd_collaboration = true are excluded), rounded to one decimal. Multi-select distributions may sum above 100%."}},"required":["primary_color","pair_count","percentage"],"additionalProperties":false}},"size_profile":{"type":"object","properties":{"criteria":{"type":"object","properties":{"size_system":{"const":"CM","type":"string"},"min_fit_rating":{"const":8,"type":"number"}},"required":["size_system","min_fit_rating"],"additionalProperties":false},"sizes_cm":{"type":"array","items":{"type":"number","description":"Original numeric CM shoe size; not converted."}},"entries":{"type":"array","items":{"type":"object","properties":{"brand":{"type":"string"},"size_cm":{"type":"number"},"pair_count":{"type":"integer","minimum":0,"description":"Record-based: counts qualifying published shoe records, not physical pairs."}},"required":["brand","size_cm","pair_count"],"additionalProperties":false}}},"required":["criteria","sizes_cm","entries"],"additionalProperties":false},"foot_profile":{"anyOf":[{"$ref":"#/components/schemas/FootProfileMeasurements"},{"type":"null"}]},"wearing_habits_by_ownership":{"type":"object","properties":{"lifetime":{"type":"object","properties":{"wear_frequency":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"seasons":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"occasions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}}},"required":["wear_frequency","seasons","occasions"],"additionalProperties":false},"current":{"type":"object","properties":{"wear_frequency":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"seasons":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"occasions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0},"percentage":{"type":"number","description":"Share of personal physical pairs in the selected mode (lifetime or current; pdupd_collaboration records excluded), rounded to one decimal; Seasons and Occasions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}}},"required":["wear_frequency","seasons","occasions"],"additionalProperties":false}},"required":["lifetime","current"],"additionalProperties":false},"wearing_habits":{"type":"object","properties":{"wear_frequency":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Legacy name: counts published shoe records (model/colorway), not physical pairs. Use the matching *_by_ownership field for physical pairs."},"percentage":{"type":"number","description":"Share of published personal shoe records (records with pdupd_collaboration = true are excluded), rounded to one decimal. Multi-select distributions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"seasons":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Legacy name: counts published shoe records (model/colorway), not physical pairs. Use the matching *_by_ownership field for physical pairs."},"percentage":{"type":"number","description":"Share of published personal shoe records (records with pdupd_collaboration = true are excluded), rounded to one decimal. Multi-select distributions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}},"occasions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Legacy name: counts published shoe records (model/colorway), not physical pairs. Use the matching *_by_ownership field for physical pairs."},"percentage":{"type":"number","description":"Share of published personal shoe records (records with pdupd_collaboration = true are excluded), rounded to one decimal. Multi-select distributions may sum above 100%."}},"required":["value","pair_count","percentage"],"additionalProperties":false}}},"required":["wear_frequency","seasons","occasions"],"additionalProperties":false},"collection_composition":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"pair_count":{"type":"integer","minimum":0,"description":"Legacy name: counts published shoe records (model/colorway), not physical pairs. Use the matching *_by_ownership field for physical pairs."},"percentage":{"type":"number","description":"Share of published personal shoe records (records with pdupd_collaboration = true are excluded), rounded to one decimal. Multi-select distributions may sum above 100%."}},"required":["category","pair_count","percentage"],"additionalProperties":false}},"collectible_dna_by_ownership":{"type":"object","properties":{"lifetime":{"type":"object","properties":{"rare_and_collectible_pair_count":{"type":"integer","minimum":0},"collaborations_pair_count":{"type":"integer","minimum":0},"pdupd_collaborations_pair_count":{"type":"integer","minimum":0}},"required":["rare_and_collectible_pair_count","collaborations_pair_count","pdupd_collaborations_pair_count"],"additionalProperties":false},"current":{"type":"object","properties":{"rare_and_collectible_pair_count":{"type":"integer","minimum":0},"collaborations_pair_count":{"type":"integer","minimum":0},"pdupd_collaborations_pair_count":{"type":"integer","minimum":0}},"required":["rare_and_collectible_pair_count","collaborations_pair_count","pdupd_collaborations_pair_count"],"additionalProperties":false}},"required":["lifetime","current"],"additionalProperties":false},"collectible_dna":{"type":"object","properties":{"rare_and_collectible_count":{"type":"integer","minimum":0,"description":"Legacy record-based count of published shoe records; see collectible_dna_by_ownership for physical pairs."},"collaborations_count":{"type":"integer","minimum":0},"pdupd_collaborations_count":{"type":"integer","minimum":0}},"required":["rare_and_collectible_count","collaborations_count","pdupd_collaborations_count"],"additionalProperties":false}},"required":["collection_totals","pdupd_project_by_ownership","published_shoe_count","published_pair_count","lifetime_pair_count","most_loved_brands","brand_dna","current_pair_count","color_dna_by_ownership","collection_composition_by_ownership","brand_dna_by_ownership","most_loved_brands_by_ownership","color_dna","size_profile","foot_profile","wearing_habits_by_ownership","wearing_habits","collection_composition","collectible_dna_by_ownership","collectible_dna"],"additionalProperties":false},"ShoeDnaResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShoeDna"},"meta":{"$ref":"#/components/schemas/ResponseMetadata"}},"required":["data","meta"],"additionalProperties":false},"StructuredApiError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["SHOE_NOT_FOUND","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","INVALID_QUERY_PARAMETER","PROJECT_NOT_FOUND"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"CollectionLoadError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}