{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-pid-dto-response-schema.json",
  "title": "PidDtoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-pid-api-openapi.yml#/components/schemas/PidDtoResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/PidDto"
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PidDto": {
      "required": [
        "prefix",
        "suffix"
      ],
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string",
          "description": "Gets or sets the prefix of the PID."
        },
        "suffix": {
          "type": "string",
          "description": "Gets or sets the suffix of the PID."
        },
        "identifier": {
          "type": "string",
          "description": "Gets the constructed PID by combining the prefix and suffix (\"{Prefix}/{Suffix}\").",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/PidType"
        },
        "isEntityValid": {
          "type": "boolean",
          "description": "Gets or sets a value indicating whether the linked entity is considered valid."
        }
      },
      "additionalProperties": false,
      "description": "Represents a data transfer object (DTO) for a PID (Persistent Identifier)."
    },
    "PidType": {
      "enum": [
        "project",
        "resource"
      ],
      "type": "string",
      "description": "Specifies the type of PID."
    }
  }
}