{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentpaywire.com/schemas/bot.schema.json",
  "title": "Agent Paywire bot entry",
  "description": "Listed, not endorsed. Not investment advice. One public agent or bot.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "maker",
    "description",
    "protocols",
    "url",
    "license",
    "license_verified",
    "license_url",
    "verified_at",
    "http_status",
    "archive_url",
    "funds_or_keys",
    "notes"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "maker": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "protocols": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "license_verified": {
      "type": "boolean"
    },
    "license_url": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "verified_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "http_status": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 100,
          "maximum": 599
        },
        {
          "type": "null"
        }
      ]
    },
    "archive_url": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "funds_or_keys": {
      "type": "boolean"
    },
    "notes": {
      "type": "string",
      "minLength": 1
    }
  }
}
