{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-project-quota-for-update-dto-schema.json",
  "title": "ProjectQuotaForUpdateDto",
  "description": "Data transfer object (DTO) representing the update of project quotas.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-projectquota-api-openapi.yml#/components/schemas/ProjectQuotaForUpdateDto",
  "required": [
    "allocated"
  ],
  "type": "object",
  "properties": {
    "allocated": {
      "$ref": "#/$defs/QuotaForManipulationDto"
    },
    "maximum": {
      "$ref": "#/$defs/QuotaForManipulationDto"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "QuotaForManipulationDto": {
      "required": [
        "unit",
        "value"
      ],
      "type": "object",
      "properties": {
        "value": {
          "minimum": 0,
          "type": "integer",
          "description": "The numerical value of the quota. Must be a positive System.Int64.",
          "format": "int64"
        },
        "unit": {
          "$ref": "#/$defs/QuotaUnit"
        }
      },
      "additionalProperties": false,
      "description": "Represents a data transfer object (DTO) used for manipulating quota values."
    },
    "QuotaUnit": {
      "enum": [
        "https://qudt.org/vocab/unit/BYTE",
        "https://qudt.org/vocab/unit/KibiBYTE",
        "https://qudt.org/vocab/unit/MebiBYTE",
        "https://qudt.org/vocab/unit/GibiBYTE",
        "https://qudt.org/vocab/unit/TebiBYTE",
        "https://qudt.org/vocab/unit/PebiBYTE"
      ],
      "type": "string",
      "description": "Specifies the unit of quota."
    }
  }
}