{
"id": "ink.igav.whatmealtodo.getSuggestions",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"suggestions"
],
"properties": {
"cursor": {
"type": "string"
},
"pantrySize": {
"type": "integer",
"minimum": 0,
"description": "How many pantry items the ranking was computed against. An empty pantry produces an empty answer for a reason worth stating rather than leaving to look like no recipes matched."
},
"suggestions": {
"type": "array",
"items": {
"ref": "ink.igav.whatmealtodo.defs#suggestion",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"maxMissing": {
"type": "integer",
"default": 2,
"maximum": 10,
"minimum": 0,
"description": "Drop recipes missing more than this many ingredients. 0 is 'cook now' only."
}
}
},
"description": "Recipes ranked by how much of them the caller's pantry already covers. The one query that needs both halves of this AppView: a network-wide public index, and one non-public repo. Neither source can answer it alone."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}