{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-user-for-update-dto-schema.json",
  "title": "UserForUpdateDto",
  "description": "Represents the data transfer object (DTO) for updating user details.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-self-api-openapi.yml#/components/schemas/UserForUpdateDto",
  "required": [
    "disciplines",
    "email",
    "familyName",
    "givenName",
    "language"
  ],
  "type": "object",
  "properties": {
    "givenName": {
      "minLength": 1,
      "type": "string",
      "description": "The user's given name."
    },
    "familyName": {
      "minLength": 1,
      "type": "string",
      "description": "The user's family name."
    },
    "email": {
      "minLength": 1,
      "type": "string",
      "description": "The user's email address.",
      "format": "email"
    },
    "title": {
      "$ref": "#/$defs/TitleForUserManipulationDto"
    },
    "language": {
      "$ref": "#/$defs/LanguageForUserManipulationDto"
    },
    "organization": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user's organization."
    },
    "disciplines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DisciplineForUserManipulationDto"
      },
      "description": "The disciplines associated with the user for manipulation."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DisciplineForUserManipulationDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or initializes the identifier of the discipline.",
          "format": "uuid"
        }
      },
      "additionalProperties": false,
      "description": "Data transfer object (DTO) representing a discipline for user manipulation."
    },
    "LanguageForUserManipulationDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or initializes the identifier of the language.",
          "format": "uuid"
        }
      },
      "additionalProperties": false,
      "description": "Data transfer object (DTO) representing a language for user manipulation."
    },
    "TitleForUserManipulationDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the title.",
          "format": "uuid"
        }
      },
      "additionalProperties": false,
      "description": "Represents the data transfer object (DTO) for manipulating a user's title."
    }
  }
}