Try our conversational search powered by Generative AI!

CSR UI does not work with CamelCasePropertyNamesContractResolver

Fixed in

EPiServer.Commerce 13.1.0

(Or a related package)

Created

Mar 05, 2019

Updated

Apr 11, 2019

Area

Core

State

Closed, Fixed and tested


Description

CSR UI assumes that the data is in Pascal casing, which is the less popular format.

Steps to reproduce:

1. Add this code to Quicksilver SiteInitialization.ConfigureContainer.

config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
                config.Formatters.JsonFormatter.UseDataContractJsonSerializer = false;

2. Build the site.
3. Go to the CSR UI.

Expected:
CSR UI should work independently with the site-wide data contract.

Actual:
CSR UI fails to load the carts.