{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-gouv-fr/json-schema/api-gouv-fr-notification-follow-schema.json",
  "title": "NotificationFollow",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-gouv-fr-notifications-api-openapi.yml#/components/schemas/NotificationFollow",
  "properties": {
    "event": {
      "description": "A notification type or a prefix of some, every notification without one",
      "type": "string"
    },
    "followed": {
      "description": "Follow, or stop following",
      "type": "boolean"
    },
    "scope": {
      "allOf": [
        {
          "$ref": "#/$defs/ModelReference"
        }
      ],
      "description": "The subject"
    }
  },
  "required": [
    "followed",
    "scope"
  ],
  "type": "object",
  "$defs": {
    "ModelReference": {
      "properties": {
        "class": {
          "description": "The model class",
          "type": "string"
        },
        "id": {
          "description": "The object identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    }
  }
}