{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://living-bread.org/protocol/v0.1/service-opportunity.schema.json",
  "title": "Kingdom Protocol v0.1: ServiceOpportunity",
  "description": "A verified need that asks for people, in person or from anywhere. The same record as its Need, seen from the side of the one who wants to serve.",
  "type": "object",
  "required": [
    "id",
    "title"
  ],
  "properties": {
    "id": {
      "description": "The need's id",
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "description": "What is needed",
      "type": "string"
    },
    "description": {
      "description": "Details",
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "description": "Category",
      "type": [
        "string",
        "null"
      ]
    },
    "urgency": {
      "description": "Urgency",
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "description": "City",
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "description": "Region",
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "description": "Country",
      "type": [
        "string",
        "null"
      ]
    },
    "local": {
      "description": "Serve in person",
      "type": [
        "boolean",
        "null"
      ]
    },
    "remote": {
      "description": "Serve from anywhere",
      "type": [
        "boolean",
        "null"
      ]
    },
    "status": {
      "description": "Status",
      "type": [
        "string",
        "null"
      ]
    },
    "ministry": {
      "description": "id, slug, name, verified",
      "type": [
        "object",
        "null"
      ]
    }
  },
  "additionalProperties": true,
  "x-lb-urn": "lb:service:<uuid>",
  "x-lb-schema-org": "https://schema.org/Demand",
  "x-lb-door": "/api/service-opportunities",
  "x-lb-license": "Directory data CC BY 4.0. Words written by people remain theirs; quote with attribution."
}