Skip to content

Commit 498b0f2

Browse files
committed
fix mv error
1 parent 008e2fb commit 498b0f2

File tree

4 files changed

+2
-72
lines changed

4 files changed

+2
-72
lines changed

generator/processors/Microsoft.Authorization.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ export const postProcessor: SchemaPostProcessor = (_namespace: string, _apiVersi
1616

1717
const definitionParameter = schema.definitions?.PolicyDefinitionProperties?.properties?.parameters;
1818
removeObjectType(definitionParameter);
19+
removeDataplaneParameterRestriction(definitionParameter);
1920

2021
const definitionReferenceParameter = schema.definitions?.PolicyDefinitionReference?.properties?.parameters;
2122
removeObjectType(definitionReferenceParameter);
23+
removeDataplaneParameterRestriction(definitionReferenceParameter);
2224

2325
const setDefinitionParameter = schema.definitions?.PolicySetDefinitionProperties?.properties?.parameters;
2426
removeObjectType(setDefinitionParameter);

schemas/2019-09-01/Microsoft.Authorization.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -455,18 +455,6 @@
455455
"description": "The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data."
456456
},
457457
"parameters": {
458-
"oneOf": [
459-
{
460-
"type": "object",
461-
"additionalProperties": {
462-
"$ref": "#/definitions/ParameterDefinitionsValue"
463-
},
464-
"properties": {}
465-
},
466-
{
467-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
468-
}
469-
],
470458
"description": "The parameter definitions for parameters used in the policy. The keys are the parameter names."
471459
},
472460
"policyRule": {
@@ -512,18 +500,6 @@
512500
"description": "The name of the groups that this policy definition reference belongs to."
513501
},
514502
"parameters": {
515-
"oneOf": [
516-
{
517-
"type": "object",
518-
"additionalProperties": {
519-
"$ref": "#/definitions/ParameterValuesValue"
520-
},
521-
"properties": {}
522-
},
523-
{
524-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
525-
}
526-
],
527503
"description": "The parameter values for the policy rule. The keys are the parameter names."
528504
},
529505
"policyDefinitionId": {

schemas/2020-03-01/Microsoft.Authorization.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -455,18 +455,6 @@
455455
"description": "The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data."
456456
},
457457
"parameters": {
458-
"oneOf": [
459-
{
460-
"type": "object",
461-
"additionalProperties": {
462-
"$ref": "#/definitions/ParameterDefinitionsValue"
463-
},
464-
"properties": {}
465-
},
466-
{
467-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
468-
}
469-
],
470458
"description": "The parameter definitions for parameters used in the policy. The keys are the parameter names."
471459
},
472460
"policyRule": {
@@ -512,18 +500,6 @@
512500
"description": "The name of the groups that this policy definition reference belongs to."
513501
},
514502
"parameters": {
515-
"oneOf": [
516-
{
517-
"type": "object",
518-
"additionalProperties": {
519-
"$ref": "#/definitions/ParameterValuesValue"
520-
},
521-
"properties": {}
522-
},
523-
{
524-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
525-
}
526-
],
527503
"description": "The parameter values for the policy rule. The keys are the parameter names."
528504
},
529505
"policyDefinitionId": {

schemas/2020-09-01/Microsoft.Authorization.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,6 @@
487487
"description": "The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data."
488488
},
489489
"parameters": {
490-
"oneOf": [
491-
{
492-
"type": "object",
493-
"additionalProperties": {
494-
"$ref": "#/definitions/ParameterDefinitionsValue"
495-
},
496-
"properties": {}
497-
},
498-
{
499-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
500-
}
501-
],
502490
"description": "The parameter definitions for parameters used in the policy. The keys are the parameter names."
503491
},
504492
"policyRule": {
@@ -544,18 +532,6 @@
544532
"description": "The name of the groups that this policy definition reference belongs to."
545533
},
546534
"parameters": {
547-
"oneOf": [
548-
{
549-
"type": "object",
550-
"additionalProperties": {
551-
"$ref": "#/definitions/ParameterValuesValue"
552-
},
553-
"properties": {}
554-
},
555-
{
556-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
557-
}
558-
],
559535
"description": "The parameter values for the policy rule. The keys are the parameter names."
560536
},
561537
"policyDefinitionId": {

0 commit comments

Comments
 (0)