{"openapi":"3.1.0","info":{"title":"One Sandwich API","version":"1.10.0","license":{"name":"One Sandwich Data Licence (licensed for a fee, credit required). The Big Mac Index is CC BY 4.0; chain branch points are ODbL 1.0.","url":"https://onesandwich.com/data/#licence"},"description":"Sandwich data from onesandwich.com. One row of /v1/sandwiches is one public post. Read-only. The sandwich endpoints need a key, sent as the x-api-key header (ask at https://onesandwich.com/api-access/); /v1/sample/sandwiches, /v1/datasets, /v1/changelog, the Big Mac Index and this document do not. 120 requests a minute per address. Adding an optional field or filter is a minor version; removing or renaming a field is a major version and gets a new path. Reference: https://onesandwich.com/api-docs/"},"servers":[{"url":"https://api.onesandwich.com"}],"security":[{"apiKey":[]}],"paths":{"/v1/sample/sandwiches":{"get":{"operationId":"sampleSandwiches","summary":"25 sandwiches with every field of the full list. No key","security":[],"description":"Example: https://api.onesandwich.com/v1/sample/sandwiches","parameters":[{"name":"format","in":"query","required":false,"description":"csv for a spreadsheet","schema":{"type":"string","enum":["csv"]}}],"responses":{"200":{"description":"The sample. `rows` has the shape of the rows of /v1/sandwiches","content":{"application/json":{"schema":{"type":"object","required":["total","rows"],"properties":{"total":{"type":"integer"},"sample":{"type":"boolean"},"full_list":{"type":"string"},"request_access":{"type":"string"},"terms":{"type":"string"},"credit":{"type":"string"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Sandwich"}}}}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/datasets":{"get":{"operationId":"listDatasets","summary":"Every dataset with its row count, date and terms. No key","security":[],"parameters":[],"responses":{"200":{"description":"The datasets","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/changelog":{"get":{"operationId":"changelog","summary":"Dated changes, newest first, and the compatibility promise. No key","security":[],"parameters":[],"responses":{"200":{"description":"The change log","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/big-mac-index":{"get":{"operationId":"bigMacIndex","summary":"The Big Mac Index today. No key. CC BY 4.0","security":[],"description":"Example: https://api.onesandwich.com/v1/big-mac-index?countries=fr,jp","parameters":[{"name":"country","in":"query","required":false,"description":"An ISO 3166 alpha-2 or alpha-3 code","schema":{"type":"string"}},{"name":"countries","in":"query","required":false,"description":"Codes, comma-separated","schema":{"type":"string"}}],"responses":{"200":{"description":"The index: _meta, countries by alpha-3 code, history","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Too many requests: 60 a minute per address"}}}},"/v1/big-mac-index/history":{"get":{"operationId":"bigMacHistory","summary":"Every country's series since 1986. No key. CC BY 4.0","security":[],"parameters":[],"responses":{"200":{"description":"Series by alpha-3 code","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/sandwiches":{"get":{"operationId":"listSandwiches","summary":"Search and page through sandwiches","description":"Examples: https://api.onesandwich.com/v1/sandwiches?country=fr&limit=5 , https://api.onesandwich.com/v1/sandwiches?kind=all&limit=3&fields=name,kind,updated_at , https://api.onesandwich.com/v1/sandwiches?kind=shop&limit=3 , https://api.onesandwich.com/v1/sandwiches?kind=historic&limit=3","parameters":[{"name":"brand","in":"query","required":false,"description":"Chain slugs (GET /v1/brands), comma-separated: any of. With `country` it names that country's menu","schema":{"type":"string"}},{"name":"venue","in":"query","required":false,"description":"Shop slugs (GET /v1/venues), comma-separated: any of","schema":{"type":"string"}},{"name":"near","in":"query","required":false,"description":"A point as latitude,longitude: shop sandwiches sold within radius_km of it","schema":{"type":"string"}},{"name":"radius_km","in":"query","required":false,"description":"With `near`. Default 5, at most 500","schema":{"type":"number"}},{"name":"kind","in":"query","required":false,"description":"catalog (default), shop, historic or all","schema":{"type":"string","enum":["catalog","shop","historic","all"],"default":"catalog"}},{"name":"q","in":"query","required":false,"description":"Text in the name or slug","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"ISO 3166 alpha-2 codes, comma-separated: any of","schema":{"type":"string"}},{"name":"family","in":"query","required":false,"description":"Sandwich families, comma-separated: any of","schema":{"type":"string"}},{"name":"bread","in":"query","required":false,"description":"Bread slugs, comma-separated: any of","schema":{"type":"string"}},{"name":"protein","in":"query","required":false,"description":"Protein slugs, comma-separated: any of","schema":{"type":"string"}},{"name":"heat","in":"query","required":false,"description":"How it is served (cold, grilled, toasted ...), comma-separated: any of","schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"description":"Public tag names, comma-separated: any of","schema":{"type":"string"}},{"name":"diet","in":"query","required":false,"description":"vegetarian, vegan, halal, kosher, comma-separated: all must hold","schema":{"type":"string"}},{"name":"has","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has every one","schema":{"type":"string"}},{"name":"lacks","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has none","schema":{"type":"string"}},{"name":"any","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has at least one","schema":{"type":"string"}},{"name":"raw","in":"query","required":false,"description":"Text in the written ingredient list","schema":{"type":"string"}},{"name":"sandwich_score_min","in":"query","required":false,"description":"Sandwich Score at least this. A sandwich with no score never matches","schema":{"type":"number"}},{"name":"sandwich_score_max","in":"query","required":false,"description":"Sandwich Score at most this","schema":{"type":"number"}},{"name":"updated_since","in":"query","required":false,"description":"Only sandwiches whose post changed after this time","schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","required":false,"description":"slug (default), name, country, ingredients, updated or sandwich_score (highest first)","schema":{"type":"string","enum":["slug","name","country","ingredients","updated","sandwich_score"],"default":"slug"}},{"name":"limit","in":"query","required":false,"description":"Rows per page","schema":{"type":"integer","minimum":1,"maximum":500,"default":50}},{"name":"cursor","in":"query","required":false,"description":"The previous answer's next_cursor. Default order only. A walk by cursor neither skips nor repeats rows when the list changes","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip. Works with any sort; can skip or repeat rows across a change","schema":{"type":"integer","minimum":0,"default":0}},{"name":"fields","in":"query","required":false,"description":"Comma-separated field names to return. slug is always returned","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"csv for a spreadsheet (up to 10,000 rows)","schema":{"type":"string","enum":["csv"]}},{"name":"If-None-Match","in":"header","required":false,"description":"An ETag from an earlier answer","schema":{"type":"string"}}],"responses":{"200":{"description":"The matching sandwiches","headers":{"ETag":{"description":"Changes whenever any sandwich is added, changed or removed. Send back as If-None-Match to get a 304 when nothing changed","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandwichList"}}}},"304":{"description":"Nothing changed since the ETag sent in If-None-Match"},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandwiches/facets":{"get":{"operationId":"sandwichFacets","summary":"Counts per kind, country, family, heat, bread and protein","description":"Takes the same filters as the list. Example: https://api.onesandwich.com/v1/sandwiches/facets?kind=all","parameters":[{"name":"brand","in":"query","required":false,"description":"Chain slugs (GET /v1/brands), comma-separated: any of. With `country` it names that country's menu","schema":{"type":"string"}},{"name":"venue","in":"query","required":false,"description":"Shop slugs (GET /v1/venues), comma-separated: any of","schema":{"type":"string"}},{"name":"near","in":"query","required":false,"description":"A point as latitude,longitude: shop sandwiches sold within radius_km of it","schema":{"type":"string"}},{"name":"radius_km","in":"query","required":false,"description":"With `near`. Default 5, at most 500","schema":{"type":"number"}},{"name":"kind","in":"query","required":false,"description":"catalog (default), shop, historic or all","schema":{"type":"string","enum":["catalog","shop","historic","all"],"default":"catalog"}},{"name":"q","in":"query","required":false,"description":"Text in the name or slug","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"ISO 3166 alpha-2 codes, comma-separated: any of","schema":{"type":"string"}},{"name":"family","in":"query","required":false,"description":"Sandwich families, comma-separated: any of","schema":{"type":"string"}},{"name":"bread","in":"query","required":false,"description":"Bread slugs, comma-separated: any of","schema":{"type":"string"}},{"name":"protein","in":"query","required":false,"description":"Protein slugs, comma-separated: any of","schema":{"type":"string"}},{"name":"heat","in":"query","required":false,"description":"How it is served (cold, grilled, toasted ...), comma-separated: any of","schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"description":"Public tag names, comma-separated: any of","schema":{"type":"string"}},{"name":"diet","in":"query","required":false,"description":"vegetarian, vegan, halal, kosher, comma-separated: all must hold","schema":{"type":"string"}},{"name":"has","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has every one","schema":{"type":"string"}},{"name":"lacks","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has none","schema":{"type":"string"}},{"name":"any","in":"query","required":false,"description":"Pantry ingredient slugs, comma-separated: the sandwich has at least one","schema":{"type":"string"}},{"name":"raw","in":"query","required":false,"description":"Text in the written ingredient list","schema":{"type":"string"}},{"name":"sandwich_score_min","in":"query","required":false,"description":"Sandwich Score at least this. A sandwich with no score never matches","schema":{"type":"number"}},{"name":"sandwich_score_max","in":"query","required":false,"description":"Sandwich Score at most this","schema":{"type":"number"}},{"name":"updated_since","in":"query","required":false,"description":"Only sandwiches whose post changed after this time","schema":{"type":"string","format":"date-time"}},{"name":"If-None-Match","in":"header","required":false,"description":"An ETag from an earlier answer","schema":{"type":"string"}}],"responses":{"200":{"description":"Counts for the sandwiches that match","headers":{"ETag":{"description":"Changes whenever any sandwich is added, changed or removed. Send back as If-None-Match to get a 304 when nothing changed","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandwichFacets"}}}},"304":{"description":"Nothing changed since the ETag sent in If-None-Match"},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandwiches/status":{"get":{"operationId":"sandwichStatus","summary":"How many sandwiches, and when the list was last checked against the site","parameters":[],"responses":{"200":{"description":"The index's state","headers":{"ETag":{"description":"Changes whenever any sandwich is added, changed or removed. Send back as If-None-Match to get a 304 when nothing changed","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandwichStatus"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandwiches/{slug}":{"get":{"operationId":"getSandwich","summary":"One sandwich","description":"Example: https://api.onesandwich.com/v1/sandwiches/jambon-beurre","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"description":"An ETag from an earlier answer","schema":{"type":"string"}}],"responses":{"200":{"description":"The sandwich","headers":{"ETag":{"description":"Changes whenever any sandwich is added, changed or removed. Send back as If-None-Match to get a 304 when nothing changed","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandwich"}}}},"304":{"description":"Nothing changed since the ETag sent in If-None-Match"},"404":{"description":"No public post has this slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/score":{"post":{"operationId":"scoreBuild","summary":"The Sandwich Score for any build, without saving it","description":"Send a build: a sandwich's `build` from /v1/sandwiches as it is, or changed (another bread, an amount doubled, a layer added). The engine runs on the server. 422 names the first ingredient the pantry does not have.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreRequest"},"example":{"bread_slug":"white-bread","bread_format":"two-slices","prep":"toasted","bread_quality":"medium","items":[{"slug":"bacon","amount":"regular"},{"slug":"lettuce","amount":"regular"},{"slug":"tomato","amount":"regular"},{"slug":"mayonnaise","amount":"light"}]}}}},"responses":{"200":{"description":"The build as scored, its Sandwich Score, and the full reading","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreAnswer"}}}},"400":{"description":"The body is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"An ingredient is not in the pantry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"}}}},"/v1/brands":{"get":{"operationId":"listBrands","summary":"Chains, each with its menu by country","description":"A chain's menu differs from one country to the next, so each brand lists a market per country. Example: https://api.onesandwich.com/v1/brands","parameters":[],"responses":{"200":{"description":"The brands","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandList"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/brands/{slug}/locations":{"get":{"operationId":"brandLocations","summary":"A chain's branches, from OpenStreetMap","description":"By country, since a chain's menu differs between countries. With near, the closest first. Example: https://api.onesandwich.com/v1/brands/mcdonalds/locations?country=kr&near=37.5665,126.978&radius_km=2","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"ISO 3166 alpha-2: only that country's branches","schema":{"type":"string"}},{"name":"near","in":"query","required":false,"description":"A point as latitude,longitude","schema":{"type":"string"}},{"name":"radius_km","in":"query","required":false,"description":"With near. Default 5, at most 500","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"At most this many points. Default 100, at most 1000","schema":{"type":"integer"}}],"responses":{"200":{"description":"The branches","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandLocations"}}}},"400":{"description":"near is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such brand, or none on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues":{"get":{"operationId":"listVenues","summary":"Shops, each with every place it trades from","description":"Example: https://api.onesandwich.com/v1/venues?near=37.8044,-122.2712&radius_km=3","parameters":[{"name":"near","in":"query","required":false,"description":"A point as latitude,longitude: shops within radius_km, nearest first","schema":{"type":"string"}},{"name":"radius_km","in":"query","required":false,"description":"With `near`. Default 5, at most 500","schema":{"type":"number"}},{"name":"q","in":"query","required":false,"description":"Text in the shop's name, slug or city","schema":{"type":"string"}}],"responses":{"200":{"description":"The shops","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueList"}}}},"400":{"description":"near is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues/{slug}":{"get":{"operationId":"getVenue","summary":"One shop and its sandwiches","description":"Example: https://api.onesandwich.com/v1/venues/oakland-dimond-cafe","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The shop","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Venue"}}}},"404":{"description":"No shop has this slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: 120 a minute per address"},"503":{"description":"The list is loading just after a first start. Retry after the number of seconds in Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ingredients":{"get":{"operationId":"listIngredients","summary":"The pantry, and the catalog's own ingredients and breads","description":"Example: https://api.onesandwich.com/v1/ingredients","parameters":[],"responses":{"200":{"description":"The ingredient list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngredientList"}}}},"429":{"description":"Too many requests: 120 a minute per address"}}}}},"components":{"schemas":{"Build":{"description":"A sandwich as a Sandwich Builder state. POST it to /v1/score, as it is or changed, for its Sandwich Score","type":"object","properties":{"bread_slug":{"description":"A pantry bread (GET /v1/ingredients, category GRAIN)","type":"string"},"bread_format":{"type":"string","enum":["two-slices","roll","baguette","open-face","wrap","triple-decker"]},"prep":{"type":"string","enum":["cold","toasted","pressed"]},"bread_quality":{"description":"medium is the neutral baseline","type":"string","enum":["low","medium","high"]},"items":{"description":"The layers, in order from the first laid down","type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"amount":{"type":"string","enum":["light","regular","double"]},"quality":{"description":"This layer's tier. Always stated","type":"string","enum":["low","medium","high"]}},"required":["slug","amount","quality"],"additionalProperties":false}}},"required":["bread_slug","bread_format","prep","bread_quality","items"],"additionalProperties":false},"Scores":{"description":"The builder's reading of a build, in the shape a saved build carries","type":"object","properties":{"sandwich":{"type":"object","properties":{"score":{"description":"The Sandwich Score, 0 to 100, to one decimal","type":"number"},"pillars":{"description":"The eight pillars, each 0 to 1: balance, envelope, texture, structure, harmony, focus, composition, quality","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"gates":{"description":"Targets the build is measured against (the field keeps its older name)","type":"array","items":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"],"additionalProperties":{}}},"penalties":{"description":"Deductions, in points","type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"points":{"type":"number"}},"required":["key","label","points"],"additionalProperties":false}}},"required":["score","pillars","gates","penalties"],"additionalProperties":false},"grid":{"type":"object","properties":{"score":{"description":"The Sandwich Definition Grid, 0 to 5","type":"number"},"questions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"boolean"}},"resemblance":{"description":"The catalog sandwich this build most resembles","anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"sim":{"type":"number"}},"required":["slug","name","sim"],"additionalProperties":false},{"type":"null"}]}},"required":["score","questions","resemblance"],"additionalProperties":false},"balance":{"type":"object","properties":{"score":{"type":"number"}},"required":["score"],"additionalProperties":false}},"required":["sandwich","grid","balance"],"additionalProperties":false},"Shop":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownership":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"menu_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"description":"open or closed","anyOf":[{"type":"string"},{"type":"null"}]},"locations":{"description":"Every place the shop trades from. One for each shop on record today; a shop with branches lists each","type":"array","items":{"type":"object","properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"county":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"description":"ISO 3166 alpha-2, lower case","anyOf":[{"type":"string"},{"type":"null"}]},"lat":{"anyOf":[{"type":"number"},{"type":"null"}]},"lon":{"anyOf":[{"type":"number"},{"type":"null"}]},"precision":{"description":"How exact the coordinates are: venue, street, city","anyOf":[{"type":"string"},{"type":"null"}]},"google_place_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["city","county","state","country","lat","lon","precision","google_place_id"],"additionalProperties":false}}},"required":["slug","name","type","ownership","website","menu_url","status","locations"],"additionalProperties":false},"ScoreRequest":{"type":"object","properties":{"bread_slug":{"description":"A pantry bread (GET /v1/ingredients, category GRAIN)","type":"string"},"bread_format":{"type":"string","enum":["two-slices","roll","baguette","open-face","wrap","triple-decker"]},"prep":{"type":"string","enum":["cold","toasted","pressed"]},"bread_quality":{"description":"medium is the neutral baseline","type":"string","enum":["low","medium","high"]},"items":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"amount":{"type":"string","enum":["light","regular","double"]},"quality":{"type":"string","enum":["low","medium","high"]}},"required":["slug"],"additionalProperties":false}},"order":{"description":"as_given (default) scores the layers in the order sent. best arranges them first in the order that scores best, for a stack whose order is not known","type":"string","enum":["as_given","best"]}},"required":["bread_slug","items"],"additionalProperties":false},"BrandLocations":{"type":"object","properties":{"brand":{"type":"string"},"total":{"description":"Branches on record, before `near`","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attribution":{"description":"The data is OpenStreetMap's, under the Open Database Licence. Show this line where you show the points","type":"string"},"markets":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"locations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["country","locations"],"additionalProperties":false}},"locations":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"km":{"type":"number"}},"required":["country","lat","lon"],"additionalProperties":false}}},"required":["brand","total","matched","attribution","markets","locations"],"additionalProperties":false},"BrandList":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"brands":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"sandwiches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"markets":{"description":"The brand's menu in each country the catalog covers","type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"sandwiches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"locations":{"description":"Branches OpenStreetMap records in this country; null when not fetched","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"median_sandwich_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"slugs":{"type":"array","items":{"type":"string"}}},"required":["country","sandwiches","locations","median_sandwich_score","slugs"],"additionalProperties":false}}},"required":["slug","name","sandwiches","markets"],"additionalProperties":false}}},"required":["total","brands"],"additionalProperties":false},"VenueList":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"venues":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownership":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"menu_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"description":"open or closed","anyOf":[{"type":"string"},{"type":"null"}]},"locations":{"description":"Every place the shop trades from. One for each shop on record today; a shop with branches lists each","type":"array","items":{"type":"object","properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"county":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"description":"ISO 3166 alpha-2, lower case","anyOf":[{"type":"string"},{"type":"null"}]},"lat":{"anyOf":[{"type":"number"},{"type":"null"}]},"lon":{"anyOf":[{"type":"number"},{"type":"null"}]},"precision":{"description":"How exact the coordinates are: venue, street, city","anyOf":[{"type":"string"},{"type":"null"}]},"google_place_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["city","county","state","country","lat","lon","precision","google_place_id"],"additionalProperties":false}},"sandwiches":{"description":"Sandwiches on the shop's menu on record","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"published":{"description":"How many of them have a page on the site","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"median_sandwich_score":{"description":"The median of the shop's scored sandwiches","anyOf":[{"type":"number"},{"type":"null"}]},"km":{"description":"With `near`: kilometres from the point to the shop's closest location","type":"number"}},"required":["slug","name","type","ownership","website","menu_url","status","locations","sandwiches","published","median_sandwich_score"],"additionalProperties":false}}},"required":["total","venues"],"additionalProperties":false},"Venue":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownership":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"menu_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"description":"open or closed","anyOf":[{"type":"string"},{"type":"null"}]},"locations":{"description":"Every place the shop trades from. One for each shop on record today; a shop with branches lists each","type":"array","items":{"type":"object","properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"county":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"description":"ISO 3166 alpha-2, lower case","anyOf":[{"type":"string"},{"type":"null"}]},"lat":{"anyOf":[{"type":"number"},{"type":"null"}]},"lon":{"anyOf":[{"type":"number"},{"type":"null"}]},"precision":{"description":"How exact the coordinates are: venue, street, city","anyOf":[{"type":"string"},{"type":"null"}]},"google_place_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["city","county","state","country","lat","lon","precision","google_place_id"],"additionalProperties":false}},"sandwiches":{"description":"Sandwiches on the shop's menu on record","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"published":{"description":"How many of them have a page on the site","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"median_sandwich_score":{"description":"The median of the shop's scored sandwiches","anyOf":[{"type":"number"},{"type":"null"}]},"km":{"description":"With `near`: kilometres from the point to the shop's closest location","type":"number"},"menu":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"url":{"description":"The sandwich's page; null until it has one","anyOf":[{"type":"string"},{"type":"null"}]},"sandwich_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"quality_tier":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"venue_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"scored":{"description":"How the shops pipeline scores the item: score, score with caveat, or unscored","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["slug","name","url","sandwich_score","quality_score","quality_tier","venue_score","scored"],"additionalProperties":false}}},"required":["slug","name","type","ownership","website","menu_url","status","locations","sandwiches","published","median_sandwich_score","menu"],"additionalProperties":false},"Sandwich":{"type":"object","properties":{"slug":{"description":"The post's slug. Unique. The sandwich's page is https://onesandwich.com/<slug>/","type":"string"},"kind":{"description":"catalog: a sandwich in the catalog. shop: a sandwich on a shop's menu. historic: a printed recipe from the archive","type":"string","enum":["catalog","shop","historic"]},"name":{"type":"string"},"url":{"type":"string"},"published_at":{"description":"ISO 8601 time","type":"string"},"updated_at":{"description":"When the post last changed in Ghost","type":"string"},"country":{"description":"ISO 3166 alpha-2, lower case. Null when neither a record nor a country tag says","anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"anyOf":[{"type":"string"},{"type":"null"}]},"bread":{"anyOf":[{"type":"string"},{"type":"null"}]},"proteins":{"type":"array","items":{"type":"string"}},"heat":{"anyOf":[{"type":"string"},{"type":"null"}]},"dietary":{"description":"Null when nothing states the sandwich's diet","anyOf":[{"type":"object","properties":{"vegetarian":{"type":"boolean"},"vegan":{"type":"boolean"},"halal":{"type":"boolean"},"kosher":{"type":"boolean"}},"required":["vegetarian","vegan","halal","kosher"],"additionalProperties":false},{"type":"null"}]},"allergens":{"type":"array","items":{"type":"string"}},"tags":{"description":"The post's public tags","type":"array","items":{"type":"string"}},"ingredients_raw":{"description":"The ingredient list as written","type":"array","items":{"type":"string"}},"ingredients":{"description":"The same sandwich as Sandwich Builder pantry ingredients (slugs)","type":"array","items":{"type":"string"}},"build":{"description":"The sandwich as the Sandwich Builder loads it: the first pantry bread in its ingredients, then the rest as regular layers. A shop sandwich uses its menu's recorded format, serving and quality tiers. Null with no pantry bread or no layer","anyOf":[{"$ref":"#/components/schemas/Build"},{"type":"null"}]},"build_order":{"description":"How the layers of `build` are ordered. Nobody records which layer sits where, so the order is assumed: `best` when the listed order would have lost points and the layers were rearranged to the order that scores best, `listed` when the listed order already scored best","anyOf":[{"type":"string","enum":["best","listed"]},{"type":"null"}]},"quality_score":{"description":"What the sandwich is made of. Each ingredient is low (0), medium (50) or high (100), listed in ingredient_quality; this is their average. An ingredient with no tier on record is medium, so a sandwich with none scores 50. It describes the ingredients; how the Sandwich Score weighs quality is already inside sandwich_score","anyOf":[{"type":"number"},{"type":"null"}]},"quality_tier":{"description":"quality_score as the builder's word for it: under 25 low, over 75 high, otherwise medium","anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"ingredient_quality":{"description":"Quality belongs to each ingredient: the tier and score of the bread and of every layer, bread first. quality_score is the average of these scores","anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"part":{"type":"string","enum":["bread","layer"]},"tier":{"type":"string","enum":["low","medium","high"]},"score":{"description":"low 0, medium 50, high 100","type":"number"}},"required":["slug","part","tier","score"],"additionalProperties":false}},{"type":"null"}]},"quality_basis":{"description":"Where the tiers behind quality_score come from. `menu`: a shop menu's recorded tiers. `assumed`: none recorded, so every layer is taken as medium, the builder's default, and quality_score is 50","anyOf":[{"type":"string","enum":["menu","assumed"]},{"type":"null"}]},"sandwich_score":{"description":"To one decimal (88.6), exactly as the builder's scorecard shows it. The Sandwich Score of `build`, from the live engine: the number the builder shows when this sandwich is opened in it. Null with no build","anyOf":[{"type":"number"},{"type":"null"}]},"sandwich_score_precise":{"description":"Deprecated: the same figure as sandwich_score, which is now one decimal too","anyOf":[{"type":"number"},{"type":"null"}]},"builder_url":{"description":"Opens this sandwich in the Sandwich Builder with `build` loaded and this score showing. Null when the builder cannot load it from its article","anyOf":[{"type":"string"},{"type":"null"}]},"scores":{"description":"The full reading behind sandwich_score","anyOf":[{"$ref":"#/components/schemas/Scores"},{"type":"null"}]},"related":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"relation":{"type":"string"}},"required":["slug","relation"],"additionalProperties":false}},"also_recorded_in":{"description":"Deprecated: always empty. Kept for compatibility","type":"array","items":{"type":"string"}},"brand":{"description":"The chain that sells it, when it is a chain's. A chain's menu differs by country, so `brand` with `country` names the menu it is on","anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},{"type":"null"}]},"brand_locations":{"description":"For a chain's sandwich: how many branches of the chain OpenStreetMap records in this sandwich's country, where this menu is sold. Null when not fetched","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"venue":{"description":"For a shop sandwich, the shop's slug","anyOf":[{"type":"string"},{"type":"null"}]},"shop":{"description":"For a shop sandwich, the shop and every place it trades from","anyOf":[{"$ref":"#/components/schemas/Shop"},{"type":"null"}]},"venue_score":{"description":"For a shop sandwich: the score on the shop's own page, from the shops pipeline's last run. It can differ from sandwich_score, which is the live engine on `build`: the shops reader also fills in layers a menu leaves unsaid","anyOf":[{"type":"number"},{"type":"null"}]},"has_record":{"type":"boolean"}},"required":["slug","kind","name","url","published_at","updated_at","country","region","family","bread","proteins","heat","dietary","allergens","tags","ingredients_raw","ingredients","build","build_order","quality_score","quality_tier","ingredient_quality","quality_basis","sandwich_score","sandwich_score_precise","builder_url","scores","related","also_recorded_in","brand","brand_locations","venue","shop","venue_score","has_record"],"additionalProperties":false},"SandwichFields":{"type":"object","properties":{"slug":{"description":"The post's slug. Unique. The sandwich's page is https://onesandwich.com/<slug>/","type":"string"},"kind":{"description":"catalog: a sandwich in the catalog. shop: a sandwich on a shop's menu. historic: a printed recipe from the archive","type":"string","enum":["catalog","shop","historic"]},"name":{"type":"string"},"url":{"type":"string"},"published_at":{"description":"ISO 8601 time","type":"string"},"updated_at":{"description":"When the post last changed in Ghost","type":"string"},"country":{"description":"ISO 3166 alpha-2, lower case. Null when neither a record nor a country tag says","anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"anyOf":[{"type":"string"},{"type":"null"}]},"bread":{"anyOf":[{"type":"string"},{"type":"null"}]},"proteins":{"type":"array","items":{"type":"string"}},"heat":{"anyOf":[{"type":"string"},{"type":"null"}]},"dietary":{"description":"Null when nothing states the sandwich's diet","anyOf":[{"type":"object","properties":{"vegetarian":{"type":"boolean"},"vegan":{"type":"boolean"},"halal":{"type":"boolean"},"kosher":{"type":"boolean"}},"required":["vegetarian","vegan","halal","kosher"],"additionalProperties":false},{"type":"null"}]},"allergens":{"type":"array","items":{"type":"string"}},"tags":{"description":"The post's public tags","type":"array","items":{"type":"string"}},"ingredients_raw":{"description":"The ingredient list as written","type":"array","items":{"type":"string"}},"ingredients":{"description":"The same sandwich as Sandwich Builder pantry ingredients (slugs)","type":"array","items":{"type":"string"}},"build":{"description":"The sandwich as the Sandwich Builder loads it: the first pantry bread in its ingredients, then the rest as regular layers. A shop sandwich uses its menu's recorded format, serving and quality tiers. Null with no pantry bread or no layer","anyOf":[{"$ref":"#/components/schemas/Build"},{"type":"null"}]},"build_order":{"description":"How the layers of `build` are ordered. Nobody records which layer sits where, so the order is assumed: `best` when the listed order would have lost points and the layers were rearranged to the order that scores best, `listed` when the listed order already scored best","anyOf":[{"type":"string","enum":["best","listed"]},{"type":"null"}]},"quality_score":{"description":"What the sandwich is made of. Each ingredient is low (0), medium (50) or high (100), listed in ingredient_quality; this is their average. An ingredient with no tier on record is medium, so a sandwich with none scores 50. It describes the ingredients; how the Sandwich Score weighs quality is already inside sandwich_score","anyOf":[{"type":"number"},{"type":"null"}]},"quality_tier":{"description":"quality_score as the builder's word for it: under 25 low, over 75 high, otherwise medium","anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"ingredient_quality":{"description":"Quality belongs to each ingredient: the tier and score of the bread and of every layer, bread first. quality_score is the average of these scores","anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"part":{"type":"string","enum":["bread","layer"]},"tier":{"type":"string","enum":["low","medium","high"]},"score":{"description":"low 0, medium 50, high 100","type":"number"}},"required":["slug","part","tier","score"],"additionalProperties":false}},{"type":"null"}]},"quality_basis":{"description":"Where the tiers behind quality_score come from. `menu`: a shop menu's recorded tiers. `assumed`: none recorded, so every layer is taken as medium, the builder's default, and quality_score is 50","anyOf":[{"type":"string","enum":["menu","assumed"]},{"type":"null"}]},"sandwich_score":{"description":"To one decimal (88.6), exactly as the builder's scorecard shows it. The Sandwich Score of `build`, from the live engine: the number the builder shows when this sandwich is opened in it. Null with no build","anyOf":[{"type":"number"},{"type":"null"}]},"sandwich_score_precise":{"description":"Deprecated: the same figure as sandwich_score, which is now one decimal too","anyOf":[{"type":"number"},{"type":"null"}]},"builder_url":{"description":"Opens this sandwich in the Sandwich Builder with `build` loaded and this score showing. Null when the builder cannot load it from its article","anyOf":[{"type":"string"},{"type":"null"}]},"scores":{"description":"The full reading behind sandwich_score","anyOf":[{"$ref":"#/components/schemas/Scores"},{"type":"null"}]},"related":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"relation":{"type":"string"}},"required":["slug","relation"],"additionalProperties":false}},"also_recorded_in":{"description":"Deprecated: always empty. Kept for compatibility","type":"array","items":{"type":"string"}},"brand":{"description":"The chain that sells it, when it is a chain's. A chain's menu differs by country, so `brand` with `country` names the menu it is on","anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},{"type":"null"}]},"brand_locations":{"description":"For a chain's sandwich: how many branches of the chain OpenStreetMap records in this sandwich's country, where this menu is sold. Null when not fetched","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"venue":{"description":"For a shop sandwich, the shop's slug","anyOf":[{"type":"string"},{"type":"null"}]},"shop":{"description":"For a shop sandwich, the shop and every place it trades from","anyOf":[{"$ref":"#/components/schemas/Shop"},{"type":"null"}]},"venue_score":{"description":"For a shop sandwich: the score on the shop's own page, from the shops pipeline's last run. It can differ from sandwich_score, which is the live engine on `build`: the shops reader also fills in layers a menu leaves unsaid","anyOf":[{"type":"number"},{"type":"null"}]},"has_record":{"type":"boolean"}},"required":["slug"],"additionalProperties":false},"SandwichList":{"type":"object","properties":{"total":{"description":"How many sandwiches match, across all pages","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_cursor":{"description":"Pass as `cursor` for the next page. Null on the last page, or when sort or offset is used","anyOf":[{"type":"string"},{"type":"null"}]},"rows":{"type":"array","items":{"$ref":"#/components/schemas/SandwichFields"}}},"required":["total","limit","offset","next_cursor","rows"],"additionalProperties":false},"SandwichFacets":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"brand":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"country":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"family":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"heat":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"bread":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}},"protein":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false}}},"required":["total","kind","brand","country","family","heat","bread","protein"],"additionalProperties":false},"SandwichStatus":{"type":"object","properties":{"state":{"description":"cached: the saved list, not yet checked against Ghost since the last restart. live: checked","type":"string","enum":["cached","live"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"description":"Rises whenever any sandwich is added, changed or removed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_sync":{"anyOf":[{"type":"object","properties":{"at":{"description":"ISO 8601 time","type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["at","added","changed","removed","ms"],"additionalProperties":false},{"type":"null"}]}},"required":["state","total","version","last_sync"],"additionalProperties":false},"IngredientList":{"type":"object","properties":{"pantry":{"description":"The Sandwich Builder's ingredients: the slugs `has`, `lacks` and `any` take, and what `ingredients` on a sandwich holds","type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"role":{"type":"string"},"description":{"description":"One line saying what the ingredient is, or null where none is written yet","anyOf":[{"type":"string"},{"type":"null"}]},"flavor_axes":{"description":"salt, acid, fat, sweet, umami, heat, bitter: each 0 to 5","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"texture_tags":{"type":"array","items":{"type":"string"}},"sensory":{"description":"pungency, aroma, crunch, chew, juiciness: each 0 to 5, where scored","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},{"type":"null"}]},"dietary":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"boolean"}},"allergens":{"type":"array","items":{"type":"string"}},"aliases":{"type":"array","items":{"type":"string"}},"quality":{"description":"The tier a layer of this ingredient has when a build does not state one","type":"string","enum":["low","medium","high"]},"catalog_uses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","category","role","description","flavor_axes","texture_tags","sensory","dietary","allergens","aliases","quality","catalog_uses"],"additionalProperties":false}},"catalog":{"description":"Ingredients and breads the catalog holds in their own right","type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["ingredient","bread"]},"name":{"description":"As the catalog names it, native script included","type":"string"},"countries":{"type":"array","items":{"type":"string"}},"note":{"type":"string"},"pantry":{"description":"The pantry ingredient this matches, or null when the pantry does not have it","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["slug","kind","name","countries","note","pantry"],"additionalProperties":false}},"counts":{"type":"object","properties":{"pantry":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catalog":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catalog_in_pantry":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pantry","catalog","catalog_in_pantry"],"additionalProperties":false}},"required":["pantry","catalog","counts"],"additionalProperties":false},"ScoreAnswer":{"type":"object","properties":{"build":{"$ref":"#/components/schemas/Build"},"build_order":{"description":"as_given: scored as sent. best: rearranged. listed: best was asked for and the order sent already was","type":"string","enum":["as_given","best","listed"]},"sandwich_score":{"type":"number"},"sandwich_score_precise":{"description":"To one decimal, as the builder shows it","type":"number"},"quality_score":{"description":"Average tier of the bread and layers: low 0, medium 50, high 100","type":"number"},"quality_tier":{"type":"string","enum":["low","medium","high"]},"ingredient_quality":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"part":{"type":"string","enum":["bread","layer"]},"tier":{"type":"string","enum":["low","medium","high"]},"score":{"description":"low 0, medium 50, high 100","type":"number"}},"required":["slug","part","tier","score"],"additionalProperties":false}},"scores":{"$ref":"#/components/schemas/Scores"}},"required":["build","build_order","sandwich_score","sandwich_score_precise","quality_score","quality_tier","ingredient_quality","scores"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}},"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"A key given out by One Sandwich. Authorization: Bearer <key> works too."}}}}