io.kich.pantry.defs
Shared definitions for pantry-related lexicons
Details · object
| Kind | object |
|---|---|
| Authority | pantry.kich.io |
| Indexed |
Checks
Validdefs-main-definitiondefs.mainA defs lexicon shouldn't have a main definition.unlimited-stringdefs.pantryItemView.properties.categoryNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pantryItemView.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pantryItemView.properties.nameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pantryItemView.properties.notesNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pantryItemView.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pantryItemView.properties.unitNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Shared definitions for pantry-related lexicons",
"properties": {},
"type": "object"
},
"pantryItemView": {
"description": "One thing in the house, as a reader sees it.",
"properties": {
"category": {
"description": "The product catalogue's category, where the item is matched to one",
"type": "string"
},
"expirationDate": {
"description": "When this turns. Absent for things that do not.",
"format": "datetime",
"type": "string"
},
"id": {
"description": "Stable identifier for this pantry item",
"type": "string"
},
"name": {
"description": "What the thing is called",
"type": "string"
},
"notes": {
"description": "Whatever somebody wrote on it",
"type": "string"
},
"purchasedAt": {
"description": "When it came into the house",
"format": "datetime",
"type": "string"
},
"quantity": {
"description": "How much there is. A number, and deliberately not an integer: half a bag is a real quantity.",
"type": "unknown"
},
"status": {
"description": "Whether the item is in stock, running low, or used up. `finished` items are never returned.",
"knownValues": [
"in_stock",
"low",
"depleted"
],
"type": "string"
},
"unit": {
"description": "The unit the quantity is counted in (pieces, g, ml, bunch)",
"type": "string"
}
},
"required": [
"id",
"name",
"quantity",
"unit",
"status"
],
"type": "object"
}
},
"description": "Shared definitions for the pantry namespace. The pantry has no record type — it lives in the application database rather than on a PDS — so these views exist only as query output.",
"id": "io.kich.pantry.defs",
"lexicon": 1
}