Skip to content

Commit 987c719

Browse files
authored
Merge pull request #2568 from Azure/jcotillo/fix_msft_insights_ref
[Microsoft.Insights] Fix cyclic reference
2 parents efb82df + 18d8bd6 commit 987c719

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

generator/processors/Microsoft.SecurityInsights.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ import { replaceCyclicRef } from './helpers';
66
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
77
replaceCyclicRef(schema.definitions?.MetadataDependencies?.properties?.criteria?.oneOf[0]?.items);
88
replaceCyclicRef(schema.definitions?.AutomationRuleCondition?.oneOf[0]);
9+
replaceCyclicRef(schema.definitions?.AutomationRuleCondition?.oneOf[2]);
910
}

schemas/2022-05-01-preview/Microsoft.SecurityInsights.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@
15481548
"$ref": "#/definitions/PropertyChangedConditionProperties"
15491549
},
15501550
{
1551-
"$ref": "#/definitions/PropertyConditionProperties"
1551+
"type": "object"
15521552
}
15531553
],
15541554
"properties": {},

schemas/2022-06-01-preview/Microsoft.SecurityInsights.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@
15481548
"$ref": "#/definitions/PropertyChangedConditionProperties"
15491549
},
15501550
{
1551-
"$ref": "#/definitions/PropertyConditionProperties"
1551+
"type": "object"
15521552
}
15531553
],
15541554
"properties": {},

schemas/2022-07-01-preview/Microsoft.SecurityInsights.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@
15491549
"$ref": "#/definitions/PropertyChangedConditionProperties"
15501550
},
15511551
{
1552-
"$ref": "#/definitions/PropertyConditionProperties"
1552+
"type": "object"
15531553
}
15541554
],
15551555
"properties": {},

schemas/2022-08-01-preview/Microsoft.SecurityInsights.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@
15881588
"$ref": "#/definitions/PropertyChangedConditionProperties"
15891589
},
15901590
{
1591-
"$ref": "#/definitions/PropertyConditionProperties"
1591+
"type": "object"
15921592
}
15931593
],
15941594
"properties": {},

schemas/2022-09-01-preview/Microsoft.SecurityInsights.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@
16201620
"$ref": "#/definitions/PropertyArrayChangedConditionProperties"
16211621
},
16221622
{
1623-
"$ref": "#/definitions/PropertyArrayConditionProperties"
1623+
"type": "object"
16241624
},
16251625
{
16261626
"$ref": "#/definitions/PropertyChangedConditionProperties"

0 commit comments

Comments
 (0)