{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-provenance-dto-response-schema.json",
  "title": "ProvenanceDtoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-provenance-api-openapi.yml#/components/schemas/ProvenanceDtoResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/ProvenanceDto"
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "HashParametersDto": {
      "required": [
        "algorithmName",
        "value"
      ],
      "type": "object",
      "properties": {
        "algorithmName": {
          "minLength": 1,
          "type": "string",
          "description": "Gets or initializes the hash algorithm name."
        },
        "value": {
          "minLength": 1,
          "type": "string",
          "description": "Gets or initializes the hash value."
        }
      },
      "additionalProperties": false,
      "description": "Data transfer object (DTO) representing Hash Parameters in a request."
    },
    "ProvenanceDto": {
      "required": [
        "id",
        "variants",
        "wasRevisionOf"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or sets the id of the current metadata graph.",
          "format": "uri"
        },
        "generatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the date and time when the metadata was generated.",
          "format": "date-time"
        },
        "wasRevisionOf": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          },
          "description": "Gets or sets the adapted versions from the specific metadata tree."
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VariantDto"
          },
          "description": "Gets or sets the variants of the specific metadata tree."
        },
        "similarityToLastVersion": {
          "type": [
            "number",
            "null"
          ],
          "description": "The similarity to the last version.",
          "format": "double"
        },
        "wasInvalidatedBy": {
          "type": [
            "string",
            "null"
          ],
          "description": "Information if the specific metadata tree was invalidated by something.",
          "format": "uri"
        },
        "hashParameters": {
          "$ref": "#/$defs/HashParametersDto"
        }
      },
      "additionalProperties": false,
      "description": "Represents a data transfer object (DTO) for provenance information."
    },
    "VariantDto": {
      "type": "object",
      "properties": {
        "graphName": {
          "type": "string",
          "description": "Name of the graph.",
          "format": "uri"
        },
        "similarity": {
          "type": "number",
          "description": "Similarity value 0-1",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "Represents the variants of this specific metadata tree."
    }
  }
}