{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-project-invitation-dto-response-schema.json",
  "title": "ProjectInvitationDtoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-projectinvitation-api-openapi.yml#/components/schemas/ProjectInvitationDtoResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/ProjectInvitationDto"
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ProjectInvitationDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the invitation.",
          "format": "uuid"
        },
        "expirationDate": {
          "type": "string",
          "description": "Expiration date of the invitation.",
          "format": "date-time"
        },
        "email": {
          "type": "string",
          "description": "Email associated with the invitation."
        },
        "issuer": {
          "$ref": "#/$defs/PublicUserDto"
        },
        "project": {
          "$ref": "#/$defs/ProjectMinimalDto"
        },
        "role": {
          "$ref": "#/$defs/RoleMinimalDto"
        }
      },
      "additionalProperties": false,
      "description": "Represents a data transfer object (DTO) for project invitations."
    },
    "ProjectMinimalDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the project.",
          "format": "uuid"
        }
      },
      "additionalProperties": false,
      "description": "Represents a minimal data transfer object (DTO) for a project."
    },
    "PublicUserDto": {
      "required": [
        "displayName",
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets the unique identifier of the user.",
          "format": "uuid"
        },
        "displayName": {
          "type": "string",
          "description": "Gets the display name of the user."
        },
        "givenName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the given name of the user."
        },
        "familyName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the family name of the user."
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the email address of the user."
        },
        "title": {
          "$ref": "#/$defs/TitleDto"
        }
      },
      "additionalProperties": false,
      "description": "Represents a public user data transfer object (DTO)."
    },
    "RoleMinimalDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the role.",
          "format": "uuid"
        }
      },
      "additionalProperties": false,
      "description": "Represents a Data Transfer Object (DTO) containing minimal information about a role."
    },
    "TitleDto": {
      "required": [
        "displayName",
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier for the title.",
          "format": "uuid"
        },
        "displayName": {
          "type": "string",
          "description": "The displayed name of the title."
        }
      },
      "additionalProperties": false,
      "description": "Represents the Data Transfer Object (DTO) for title information."
    }
  }
}