Closed kavics closed 1 month ago
Too many fields are in the PATCH request when a content's one field was edited.
var content = await repository.LoadContentAsync("/Root/Content/Cars/AAXX123", cancel); content["Color"] = "Rosso Corsa"; await content.SaveAsync(cancel);
But currently generated this request:
PATCH https://localhost:44362/OData.svc/content(1412)?metadata=no models=[{ "Name":"AAXX123", "Color":"Nero Daytona", "Description":null, "CreationDate":"2024-06-06T14:38:17.99Z", "ModificationDate":"2024-06-06T14:38:18Z", "VersionCreationDate":"2024-06-06T14:38:17.99Z", "VersionModificationDate":"2024-06-06T14:38:18Z", "VersioningMode":["0"], "InheritableVersioningMode":["0"], "ApprovingMode":["0"], "InheritableApprovingMode":["0"], "CheckInComments":null, "RejectReason":null, "Versions":null, "EnableLifespan":false, "ValidFrom":"2024-06-06T14:38:17Z", "ValidTill":"2024-06-06T14:38:17Z", "Hidden":false,"IsFolder":false, "IsSystemContent":false, "Locked":false, "Tags":null, "TrashDisabled":false }]
The expectation:
PATCH https://localhost:44362/OData.svc/content(1412)?metadata=no models=[{ "Color":"Rosso Corsa", }]
Too many fields are in the PATCH request when a content's one field was edited.
But currently generated this request:
The expectation: