Skip to content

POST/PATCH does not work for many simple types #32

@cnolewajka

Description

@cnolewajka

It looks like there is an issue with servicing the POST/PATCH operations.

This is related to how the values are deserialized into the Delta object. It looks like the process does not account for types on the model.

For instance, if you add an int or float, or Decimal, one will notice that the POST/PATCH when trying to do Delta.ToObject() would fail with InvalidCatOperation.

This is due to the fact that the Delta Key/Value pairs have values of types that do not correspond to property types on the model, and the concluded setter requires a proper type. The cast fails when the setter is being invoked.

Is there any way to resolve that at the moment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions