File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ directive:
360360 - from : source-file-csharp
361361 where : $
362362 transform : >
363- if (!$documentPath.match(/generated%5Capi%5CModels%5CMicrosoftGraph\w*.json.cs/gm))
363+ if (!$documentPath.match(/generated%5Capi%5CModels%5CMicrosoftGraph\w*\d* .json.cs/gm))
364364 {
365365 return $;
366366 } else {
@@ -373,10 +373,16 @@ directive:
373373 - from : source-file-csharp
374374 where : $
375375 transform : >
376- if (!$documentPath.match(/generated%5Capi%5CModels%5CMicrosoftGraph\w*.cs/gm))
376+ if (!$documentPath.match(/generated%5Capi%5CModels%5CMicrosoftGraph\w*\d* .cs/gm))
377377 {
378378 return $;
379379 } else {
380+ // Add new modifier to 'values' properties of classes that derive from an IAssociativeArray. See example https://regex101.com/r/hnX7xO/2.
381+ let valuesPropertiesRegex = /(SerializedName\s*=\s*@"values".*\s*.*)(\s*)(.*Values\s*{\s*get;\s*set;\s*})/gmi
382+ if($.match(valuesPropertiesRegex)) {
383+ $ = $.replace(valuesPropertiesRegex, '$1$2 new $3');
384+ }
385+
380386 let regexPattern = /^\s*public\s*partial\s*class\s*MicrosoftGraph(?<EntityName>.*):$/gm;
381387 let regexArray;
382388 while ((regexArray = regexPattern.exec($)) !== null) {
@@ -397,7 +403,7 @@ directive:
397403 - from : source-file-csharp
398404 where : $
399405 transform : >
400- if (!$documentPath.match(/generated%2Fcmdlets%2F\w*.cs/gm))
406+ if (!$documentPath.match(/generated%2Fcmdlets%2F\w*\d* .cs/gm))
401407 {
402408 return $;
403409 } else {
You can’t perform that action at this time.
0 commit comments