{
  "$ref": "#/definitions/PopoloPost",
  "definitions": {
    "PopoloPost": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string",
          "description": "Label describing the post."
        },
        "other_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ],
          "description": "Alternate label(s), e.g., abbreviations."
        },
        "role": {
          "type": "string",
          "description": "Function the holder fulfills."
        },
        "organization_id": {
          "type": "string",
          "description": "Organization in which the post is held."
        },
        "area_id": {
          "type": "string",
          "description": "Related geographic area ID."
        },
        "start_date": {
          "type": "string",
          "description": "YYYY-MM-DD (creation/start)."
        },
        "end_date": {
          "type": "string",
          "description": "YYYY-MM-DD (elimination/end)."
        },
        "contact_details": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          }
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": false
          }
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": false
          }
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "label",
        "organization_id"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}