Skip to content

Commit a49fed5

Browse files
committed
Fix pluralization of statistics
1 parent 3a2ff42 commit a49fed5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/Teams/Teams.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ directive:
3232
verb: Remove|Update
3333
subject: ^(Chat|TeamChannel|TeamPrimaryChannel)MessageHostedContent$
3434
remove: true
35+
- where:
36+
subject: (.*)TeamworkTeamTemplateDefinitionTeamDefinition([A-Z]*)$
37+
remove: true
3538
```

src/readme.graph.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ directive:
432432
subject: ^(Office)(Configuration)(ClientConfiguration.*)
433433
set:
434434
subject: $1$3
435+
- where:
436+
verb: Invoke
437+
subject: ^Link(.*)HasPayload$
438+
set:
439+
subject: Has$1PayloadLink
435440
# Remove *AvailableExtensionProperty commands except those bound to DirectoryObject.
436441
- where:
437442
subject: ^(?!DirectoryObject).*AvailableExtensionProperty$
@@ -492,6 +497,10 @@ directive:
492497
subject: (\w*[a-z]|^)PassiveDn([^s]\w*|$)
493498
set:
494499
subject: $1PassiveDns$2
500+
- where:
501+
subject: (\w*[a-z]|^)UsageRight([^s]\w*|$)
502+
set:
503+
subject: $1UsageRights$2
495504
# Modify OpenAPI documents to correct AutoREST.PowerShell limitations.
496505
# Change content-type from text/plain to application/json. AutoREST does not support non-json content types.
497506
# See https://github.com/Azure/autorest.powershell/issues/206.

tools/TweakOpenApi.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ $prepositionReplacements = @{
2020

2121
$wordReplacements = @{
2222
Deltum = "delta"
23+
Quotum = "quota"
24+
Statistic = "statistics"
2325
}
2426
$targetOperationIdRegex = [Regex]::new("([a-z*])($($prepositionReplacements.Keys -join "|"))([A-Z*]|$)", "Compiled")
2527
$stopwatch = [system.diagnostics.stopwatch]::StartNew()

0 commit comments

Comments
 (0)