{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-provenance-for-update-dto-schema.json",
  "title": "ProvenanceForUpdateDto",
  "description": "Data transfer object (DTO) representing the update of provenance\nInherits from the base class Coscine.Api.Core.Shared.DataTransferObjects.ParameterObjects.ProvenanceParametersDto.",
  "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/ProvenanceForUpdateDto",
  "required": [
    "id"
  ],
  "type": "object",
  "properties": {
    "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."
    },
    "wasInvalidatedBy": {
      "type": [
        "string",
        "null"
      ],
      "description": "Information if the specific metadata tree was invalidated by something.",
      "format": "uri"
    },
    "similarityToLastVersion": {
      "type": [
        "number",
        "null"
      ],
      "description": "The similarity to the last version.",
      "format": "double"
    },
    "metadataExtractorVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gets or initializes the version of the metadata extractor."
    },
    "hashParameters": {
      "$ref": "#/$defs/HashParametersDto"
    },
    "id": {
      "type": "string",
      "description": "Gets or sets the id of the specific metadata tree.",
      "format": "uri"
    }
  },
  "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."
    },
    "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."
    }
  }
}