{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://living-bread.org/protocol/v0.1/ministry.schema.json",
  "title": "Kingdom Protocol v0.1: Ministry",
  "description": "A ministry or mission organization on The Living Bread. Public profile fields only: never contact details, never its people.",
  "type": "object",
  "required": [
    "id",
    "slug",
    "name"
  ],
  "properties": {
    "id": {
      "description": "Stable id",
      "type": "string",
      "format": "uuid"
    },
    "slug": {
      "description": "Slug",
      "type": "string"
    },
    "name": {
      "description": "Name",
      "type": "string"
    },
    "mission": {
      "description": "Its mission in its own words",
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "description": "City",
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "description": "Region",
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "description": "Country",
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "description": "Website",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "logo_url": {
      "description": "Logo",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "banner_url": {
      "description": "Banner",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "verified_level": {
      "description": "unverified, organization_verified or living_bread_partner",
      "type": [
        "string",
        "null"
      ]
    },
    "verified": {
      "description": "Verified",
      "type": [
        "boolean",
        "null"
      ]
    },
    "causes": {
      "description": "Causes it serves",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "object"
        ]
      }
    },
    "work": {
      "description": "Kinds of work",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "object"
        ]
      }
    },
    "social_links": {
      "description": "Where its people already talk",
      "type": [
        "object",
        "null"
      ]
    },
    "open_needs": {
      "description": "Verified open needs",
      "type": [
        "integer",
        "null"
      ]
    },
    "updated_at": {
      "description": "Last change",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "additionalProperties": true,
  "x-lb-urn": "lb:ministry:<slug>",
  "x-lb-schema-org": "https://schema.org/NGO",
  "x-lb-door": "/api/ministry/{slug}, /api/ministries",
  "x-lb-license": "Directory data CC BY 4.0. Words written by people remain theirs; quote with attribution."
}