Skip to content

Commit

Permalink
Fixing BaseResourceProperties having discriminator but no derived obj…
Browse files Browse the repository at this point in the history
…ect (#25154)

* Removing discriminator as derived classes for BaseResourceProperties are not yet present

* Adding dummy derived resource properties to fix

* Changing enum name
  • Loading branch information
chandrasekarendran authored Aug 23, 2023
1 parent d81a083 commit c4224d4
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4989,7 +4989,14 @@
"objectType": {
"description": "Type of the specific object - used for deserializing",
"type": "string",
"readOnly": false
"readOnly": false,
"enum": [
"DefaultResourceProperties"
],
"x-ms-enum": {
"name": "ResourcePropertiesObjectType",
"modelAsString": true
}
}
},
"discriminator": "objectType"
Expand Down Expand Up @@ -5430,6 +5437,19 @@
}
}
},
"DefaultResourceProperties": {
"description": "Default source properties",
"required": [
"objectType"
],
"type": "object",
"allOf": [
{
"$ref": "#/definitions/BaseResourceProperties"
}
],
"x-ms-discriminator-value": "DefaultResourceProperties"
},
"DeletedBackupInstanceResource": {
"description": "Deleted Backup Instance",
"type": "object",
Expand Down

0 comments on commit c4224d4

Please sign in to comment.