[BUG] API returns error when updating existing mongo cluster #31377
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/mongocluster/resource-manager/Microsoft.DocumentDB/stable/2024-07-01/mongoCluster.json#L279
API Spec version
2024-07-01
Describe the bug
When updating an existing mongocluster through the MongoClusters_CreateOrUpdate API using the response returned by the MongoClusters_Get API, an error was received, the update operation failed.
Expected behavior
Update should succeed. The API shouldn't care if this is set (like most of the other Azure APIs).
Actual behavior
Update failed, the API returns the following error.
{"error":{"code":"bad_request","message":"Found schema errors for api-version 2024-07-01. Errors: The property '#/systemData' of type null did not match the following type: object in schema 25debcc2-6915-5536-9566-a2ecd765b755"}}
Reproduction Steps
free
.free
toM30
.Environment
No response
The text was updated successfully, but these errors were encountered: