{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-365/json-schema/microsoft-365-microsoft-graph-document-set-version-schema.json",
  "title": "microsoft.graph.documentSetVersion",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-365-shares-listitem-api-openapi.yml#/components/schemas/microsoft.graph.documentSetVersion",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.listItemVersion"
    },
    {
      "title": "documentSetVersion",
      "type": "object",
      "properties": {
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Comment about the captured version."
        },
        "createdBy": {
          "$ref": "#/$defs/microsoft.graph.identitySet"
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "Date and time when this version was created.",
          "format": "date-time"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.documentSetVersionItem"
          },
          "description": "Items within the document set that are captured as part of this version."
        },
        "shouldCaptureMinorVersion": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.baseItemVersion": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "baseItemVersion",
          "type": "object",
          "properties": {
            "lastModifiedBy": {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Date and time the version was last modified. Read-only.",
              "format": "date-time"
            },
            "publication": {
              "$ref": "#/$defs/microsoft.graph.publicationFacet"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.documentSetVersionItem": {
      "title": "documentSetVersionItem",
      "type": "object",
      "properties": {
        "itemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier for the item."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The title of the item."
        },
        "versionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The version ID of the item."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.fieldValueSet": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "fieldValueSet",
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "type": "object",
      "properties": {
        "application": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "device": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "user": {
          "$ref": "#/$defs/microsoft.graph.identity"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.listItemVersion": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseItemVersion"
        },
        {
          "title": "listItemVersion",
          "type": "object",
          "properties": {
            "fields": {
              "$ref": "#/$defs/microsoft.graph.fieldValueSet"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.publicationFacet": {
      "title": "publicationFacet",
      "type": "object",
      "properties": {
        "checkedOutBy": {
          "$ref": "#/$defs/microsoft.graph.identitySet"
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "description": "The state of publication for this document. Either published or checkout. Read-only."
        },
        "versionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier for the version that is visible to the current caller. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  }
}