ink.igav.whatmealtodo.getSuggestions
Schema Diff
+1 -1
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"id": "ink.igav.whatmealtodo.getSuggestions",
3
3
"defs": {
4
4
"main": {
5
5
"type": "query",
6
6
"output": {
7
7
"schema": {
8
8
"type": "object",
9
9
"required": [
10
10
"suggestions"
11
11
],
12
12
"properties": {
13
13
"cursor": {
14
14
"type": "string"
15
15
},
16
16
"pantrySize": {
17
17
"type": "integer",
18
18
"minimum": 0,
19
19
"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."
20
20
},
21
21
"suggestions": {
22
22
"type": "array",
23
23
"items": {
24
24
"ref": "ink.igav.whatmealtodo.defs#suggestion",
25
25
"type": "ref"
26
26
}
27
27
}
28
28
}
29
29
},
30
30
"encoding": "application/json"
31
31
},
32
32
"parameters": {
33
33
"type": "params",
34
34
"properties": {
35
35
"limit": {
36
36
"type": "integer",
37
37
"default": 25,
38
38
"maximum": 100,
39
39
"minimum": 1
40
40
},
41
41
"cursor": {
42
42
"type": "string"
43
43
},
44
44
"maxMissing": {
45
45
"type": "integer",
46
46
"default": 2,
47
47
"maximum": 10,
48
48
"minimum": 0,
49
49
"description": "Drop recipes missing more than this many ingredients. 0 is 'cook now' only."
50
50
}
51
51
}
52
52
},
53
-
"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."
53
+
"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. Pantry items marked `kind: staple` are asymmetric here and callers should say so to their users: a staple counts towards a recipe that needs it, but never brings one up — candidates are drawn from held ingredients only, so a pantry of nothing but staples answers with nothing."
54
54
}
55
55
},
56
56
"$type": "com.atproto.lexicon.schema",
57
57
"lexicon": 1
58
58
}