{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/open-government-portugal/json-schema/open-government-portugal-transfer-request-schema.json",
  "title": "TransferRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/open-government-portugal-transfer-api-openapi.yml#/components/schemas/TransferRequest",
  "properties": {
    "comment": {
      "description": "An explanation about the transfer request",
      "type": "string"
    },
    "recipient": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseReference"
        }
      ],
      "description": "The transfer recipient, either an user or an organization"
    },
    "subject": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseReference"
        }
      ],
      "description": "The transfered subject"
    }
  },
  "required": [
    "comment",
    "recipient",
    "subject"
  ],
  "type": "object",
  "$defs": {
    "BaseReference": {
      "properties": {
        "class": {
          "description": "The object class",
          "type": "string"
        },
        "id": {
          "description": "The object unique identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    }
  }
}