You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V14 performs a system wide replacement of Newtonsoft.Json with System.Text.Json (see #9). This has inadvertedly resulted in a change of casing for the payload serialization in the Umbraco webhooks, which now uses camelCase instead of PascalCase.
Version
Umbraco 14
Previous behavior
In versions 12 and 13, the webhooks would have a PascalCased payload, except from the Properties collection, where the individual content properties are contained by their actual alias (which is usually camelCased).
For example, the payload of a "content published" webhook could look like this:
...and a "content deleted" webhook will have a payload like this:
{
"id": "ca4249ed-2b23-4337-b522-63cabe5587d1"
}
Type of breaking change
Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.
Reason for change
This change is primarily driven by the need to replace Newtonsoft.Json with System.Text.Json.
Secondarily, the change in default serialization casing scheme ensures that Umbraco follows widely adopted casing standards by default.
Recommended action
Any webhook consumers that are case sensitive needs updating to follow the new casing scheme.
Affected APIs
Webhooks 😄
The text was updated successfully, but these errors were encountered:
Description
V14 performs a system wide replacement of
Newtonsoft.Json
withSystem.Text.Json
(see #9). This has inadvertedly resulted in a change of casing for the payload serialization in the Umbraco webhooks, which now uses camelCase instead of PascalCase.Version
Umbraco 14
Previous behavior
In versions 12 and 13, the webhooks would have a PascalCased payload, except from the
Properties
collection, where the individual content properties are contained by their actual alias (which is usually camelCased).For example, the payload of a "content published" webhook could look like this:
...and a "content deleted" webhook could have a payload like this:
New behavior
In version 14, all JSON is camelCased by default. This means the webhook payload casing changes accordingly.
For example, the payload of a "content published" webhook will now look like this:
...and a "content deleted" webhook will have a payload like this:
Type of breaking change
Reason for change
This change is primarily driven by the need to replace
Newtonsoft.Json
withSystem.Text.Json
.Secondarily, the change in default serialization casing scheme ensures that Umbraco follows widely adopted casing standards by default.
Recommended action
Any webhook consumers that are case sensitive needs updating to follow the new casing scheme.
Affected APIs
Webhooks 😄
The text was updated successfully, but these errors were encountered: