Skip to content

Commit c4224d4

Browse files
Fixing BaseResourceProperties having discriminator but no derived object (#25154)
* Removing discriminator as derived classes for BaseResourceProperties are not yet present * Adding dummy derived resource properties to fix * Changing enum name
1 parent d81a083 commit c4224d4

File tree

1 file changed

+21
-1
lines changed
  • specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-05-01

1 file changed

+21
-1
lines changed

specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-05-01/dataprotection.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4989,7 +4989,14 @@
49894989
"objectType": {
49904990
"description": "Type of the specific object - used for deserializing",
49914991
"type": "string",
4992-
"readOnly": false
4992+
"readOnly": false,
4993+
"enum": [
4994+
"DefaultResourceProperties"
4995+
],
4996+
"x-ms-enum": {
4997+
"name": "ResourcePropertiesObjectType",
4998+
"modelAsString": true
4999+
}
49935000
}
49945001
},
49955002
"discriminator": "objectType"
@@ -5430,6 +5437,19 @@
54305437
}
54315438
}
54325439
},
5440+
"DefaultResourceProperties": {
5441+
"description": "Default source properties",
5442+
"required": [
5443+
"objectType"
5444+
],
5445+
"type": "object",
5446+
"allOf": [
5447+
{
5448+
"$ref": "#/definitions/BaseResourceProperties"
5449+
}
5450+
],
5451+
"x-ms-discriminator-value": "DefaultResourceProperties"
5452+
},
54335453
"DeletedBackupInstanceResource": {
54345454
"description": "Deleted Backup Instance",
54355455
"type": "object",

0 commit comments

Comments
 (0)