Pantry · Schema

Basket

A basket is a JSON container stored within a pantry.

Data StorageDeveloper ToolsJSON

Properties

Name Type Description
name string Name of the basket.
ttl integer Time-to-live in seconds before basket expiry.
contents object Free-form JSON contents of the basket.
View JSON Schema on GitHub

JSON Schema

basket.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pantry/refs/heads/main/json-schema/basket.json",
  "title": "Basket",
  "description": "A basket is a JSON container stored within a pantry.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the basket."
    },
    "ttl": {
      "type": "integer",
      "description": "Time-to-live in seconds before basket expiry."
    },
    "contents": {
      "type": "object",
      "description": "Free-form JSON contents of the basket.",
      "additionalProperties": true
    }
  },
  "required": ["name"]
}