{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-notification-dto-paged-response-schema.json",
  "title": "NotificationDtoPagedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-notification-api-openapi.yml#/components/schemas/NotificationDtoPagedResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/NotificationDto"
      }
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "NotificationDto": {
      "required": [
        "category",
        "id",
        "isOptional"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the project notification.",
          "format": "uuid"
        },
        "category": {
          "type": "string",
          "description": "Category of the notification."
        },
        "isOptional": {
          "type": "boolean",
          "description": "Field which clarifies if the notification is optional or not."
        }
      },
      "additionalProperties": false,
      "description": "Represents a minimal data transfer object (DTO) for a notification."
    },
    "Pagination": {
      "type": "object",
      "properties": {
        "currentPage": {
          "type": "integer",
          "description": "Gets or sets the current page number.",
          "format": "int32"
        },
        "totalPages": {
          "type": "integer",
          "description": "Gets or sets the total number of pages.",
          "format": "int32"
        },
        "pageSize": {
          "type": "integer",
          "description": "Gets or sets the number of items per page.",
          "format": "int32"
        },
        "totalCount": {
          "type": "integer",
          "description": "Gets or sets the total count of items across all pages.",
          "format": "int64"
        },
        "hasPrevious": {
          "type": "boolean",
          "description": "Gets a value indicating whether there is a previous page.",
          "readOnly": true
        },
        "hasNext": {
          "type": "boolean",
          "description": "Gets a value indicating whether there is a next page.",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "Represents pagination information for a collection of items."
    }
  }
}