You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Financials/Financials/readme.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,29 @@ title: $(service-name)
32
32
subject-prefix: ''
33
33
34
34
```
35
+
36
+
### Directives
37
+
38
+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
39
+
40
+
```yaml
41
+
directive:
42
+
# Modify generated .dictionary.cs model classes in Financials module.
43
+
- from: source-file-csharp
44
+
where: $
45
+
transform: >
46
+
if (!$documentPath.match(/generated%5Capi%5CModels%5CMicrosoftGraph\w*\d*.dictionary.cs/gm))
47
+
{
48
+
return $;
49
+
} else {
50
+
// Rename additionalProperties indexer name in Financials module from Item to EntityItem to avoid property name conflict. salesOrderLine has a property named item.
51
+
// See https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/indexers/using-indexers
52
+
let indexerRegex = /(^\s*)(public\s*global::System.Object this\[global::System.String index\]\s*{\W.*}$)/gm
0 commit comments