Skip to content

Commit

Permalink
Merge pull request #2568 from Azure/jcotillo/fix_msft_insights_ref
Browse files Browse the repository at this point in the history
[Microsoft.Insights] Fix cyclic reference
  • Loading branch information
jorgecotillo authored Sep 9, 2022
2 parents efb82df + 18d8bd6 commit 987c719
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions generator/processors/Microsoft.SecurityInsights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ import { replaceCyclicRef } from './helpers';
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
replaceCyclicRef(schema.definitions?.MetadataDependencies?.properties?.criteria?.oneOf[0]?.items);
replaceCyclicRef(schema.definitions?.AutomationRuleCondition?.oneOf[0]);
replaceCyclicRef(schema.definitions?.AutomationRuleCondition?.oneOf[2]);
}
2 changes: 1 addition & 1 deletion schemas/2022-05-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@
"$ref": "#/definitions/PropertyChangedConditionProperties"
},
{
"$ref": "#/definitions/PropertyConditionProperties"
"type": "object"
}
],
"properties": {},
Expand Down
2 changes: 1 addition & 1 deletion schemas/2022-06-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@
"$ref": "#/definitions/PropertyChangedConditionProperties"
},
{
"$ref": "#/definitions/PropertyConditionProperties"
"type": "object"
}
],
"properties": {},
Expand Down
2 changes: 1 addition & 1 deletion schemas/2022-07-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@
"$ref": "#/definitions/PropertyChangedConditionProperties"
},
{
"$ref": "#/definitions/PropertyConditionProperties"
"type": "object"
}
],
"properties": {},
Expand Down
2 changes: 1 addition & 1 deletion schemas/2022-08-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@
"$ref": "#/definitions/PropertyChangedConditionProperties"
},
{
"$ref": "#/definitions/PropertyConditionProperties"
"type": "object"
}
],
"properties": {},
Expand Down
2 changes: 1 addition & 1 deletion schemas/2022-09-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@
"$ref": "#/definitions/PropertyArrayChangedConditionProperties"
},
{
"$ref": "#/definitions/PropertyArrayConditionProperties"
"type": "object"
},
{
"$ref": "#/definitions/PropertyChangedConditionProperties"
Expand Down

0 comments on commit 987c719

Please sign in to comment.