The problem is the first letter uppercase in "Message" that doesn't match the required XML field.
The [XmlElement(ElementName = "message")] is not used to serialize entity to XML, but only to deserialize XML to entity.
At this time, I made a workaround in the "message" entity class by adding the SerializeAsAttribute attribute on the Message property
and adding the next using
using RestSharp.Serializers;
Does anyone know how to fix this problem into the PrestaSharpSerializer ?
That way, I would no longer have to use the SerializeAsAttribute attribute and the dependency on RestSharp.Serializers.
Library Version: 1.1.0
Prestashop version: 1.6.1.5
Describe the Bug: When trying to add a message, I get the error parameter "message" required
To Reproduce:
When I try to add a message like above
I get the following error :
The problem is the first letter uppercase in "Message" that doesn't match the required XML field. The [XmlElement(ElementName = "message")] is not used to serialize entity to XML, but only to deserialize XML to entity.
At this time, I made a workaround in the "message" entity class by adding the SerializeAsAttribute attribute on the Message property
and adding the next using
using RestSharp.Serializers;
Does anyone know how to fix this problem into the PrestaSharpSerializer ? That way, I would no longer have to use the SerializeAsAttribute attribute and the dependency on RestSharp.Serializers.
Best regards.