Skip to content

Preserving custom object property names sent to SetProperty and AddObject #294

@niemyjski

Description

@niemyjski

Currently we change the casing of custom data to our snake case formatting. We should try to preserve the object as it is as the model not owned by us.

Currently we are using our serializer settings and applying it to SetProperty and AddProperty and not preserving names. Short term If you want to use the DataMember attributes to control naming we will respect those. You could also define the [Exceptionless.Json.JsonProperty("name")] attribute as a temporary short-term fix.

We are going to look into possibly creating some new serializer settings for this, but in the meantime feel free to serialize this yourself and stick the serialized string json as the value like this SetProperty("response data", json)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions