{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-organization-dto-response-schema.json",
  "title": "OrganizationDtoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-organization-api-openapi.yml#/components/schemas/OrganizationDtoResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/OrganizationDto"
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "OrganizationDto": {
      "required": [
        "displayName",
        "uri"
      ],
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The ROR (Research Organization Registry) ID of the organization.",
          "format": "uri"
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the organization."
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "The email address of the organization."
        },
        "publicationAdvisoryService": {
          "$ref": "#/$defs/PublicationAdvisoryServiceDto"
        }
      },
      "additionalProperties": false,
      "description": "Represents a data transfer object (DTO) for an organization, including its ROR (Research Organization Registry) ID, display name, and email address."
    },
    "PublicationAdvisoryServiceDto": {
      "required": [
        "displayName",
        "email"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "minLength": 1,
          "type": "string",
          "description": "Gets the data publication service's display name."
        },
        "email": {
          "minLength": 1,
          "type": "string",
          "description": "Gets the data publication service's email address."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the data publication service's description."
        },
        "organizationRor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the ROR of the organization that provides this publication service."
        }
      },
      "additionalProperties": false,
      "description": "Data transfer object (DTO) representing the publication advisory service of an organization."
    }
  }
}