{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DomainSecurityPolicy",
  "title": "DomainSecurityPolicy",
  "type": "object",
  "description": "A domain security policy that defines access permissions for a specific Workday functional domain. Specifies which security groups can view or modify resources within the domain.",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the domain security policy"
    },
    "descriptor": {
      "type": "string",
      "description": "Human-readable name of the domain security policy"
    },
    "domain": {
      "type": "string",
      "description": "The Workday functional domain this policy governs"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the policy and its scope"
    },
    "permissions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PolicyPermission"
      },
      "description": "List of permission assignments defining which security groups have access and at what level"
    },
    "lastModified": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the policy was last modified"
    }
  }
}