Skip to content

Commit ba6c237

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Excluded beta Mail because of file names exceeding OS length limit for file names
1 parent 84e2920 commit ba6c237

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/UpdateOpenApi.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if (-not (Test-Path $ModuleMappingConfigPath)) {
3434
Write-Error "Module mapping file not be found: $ModuleMappingConfigPath."
3535
}
3636
$v1Excludes = @("WindowsUpdates")
37+
$betaExcludes = @("DeviceManagement.Administration", "Mail")
3738
$Stopwatch = [system.diagnostics.stopwatch]::StartNew()
3839
[HashTable] $ModuleMapping = Get-Content $ModuleMappingConfigPath | ConvertFrom-Json -AsHashTable
3940
$ModuleMapping.Keys | ForEach-Object -Begin { $RequestCount = 0 } -End { Write-Debug "Requests: $RequestCount" } -Process {
@@ -47,7 +48,7 @@ $ModuleMapping.Keys | ForEach-Object -Begin { $RequestCount = 0 } -End { Write-D
4748

4849
try {
4950
# Omit beta version of DeviceManagement.Administration module for further troubleshooting
50-
if (-not($ModuleName -eq "DeviceManagement.Administration" -and $GraphVersion -eq "beta")) {
51+
if (-not($betaExcludes -contains $ModuleName -and $GraphVersion -eq "beta")) {
5152
# Download OpenAPI document for module.
5253
& $DownloadOpenApiDocPS1 -ModuleName $ModuleName -ModuleRegex $ModuleMapping[$ModuleName] -OpenApiDocOutput $OpenApiDocOutput -GraphVersion $GraphVersion -ForceRefresh:$ForceRefresh -RequestCount $RequestCount -SingularizeOperationIds
5354
}

0 commit comments

Comments
 (0)