{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/journalize-dev/json-schema/journalize-dev-accounts-list-response-schema.json",
  "title": "AccountsListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/journalize-dev-accounts-api-openapi.yml#/components/schemas/AccountsListResponse",
  "properties": {
    "accounts": {
      "items": {
        "$ref": "#/$defs/AccountInfo"
      },
      "type": "array",
      "title": "Accounts"
    },
    "free_accounts_remaining": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Free Accounts Remaining"
    }
  },
  "type": "object",
  "required": [
    "accounts"
  ],
  "$defs": {
    "AccountInfo": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "currencies": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Currencies"
        },
        "booking_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Booking Method"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "AccountInfo",
      "description": "GET /accounts — from cached `open` directives, no booking needed\nper §6. `booking_method` is None when the `open` directive didn't\nspecify one (Beancount defaults apply; we don't second-guess that\ndefault here)."
    }
  }
}