Skip to content

Updating nested collection elements using JSON Patch throws exception #2401

Open
@EdikAmperyan

Description

@EdikAmperyan
  1. Create object A
  2. Add element B to nested collection field of object A
  3. Add element C to nested collection field of object B
  4. Change any field of object C

Changing B works but C and nested throws exception.

Fix

At this line base.nested(segment) does not always return expected element but it can be obtained by PropertyPath.from(property, currentType).

Example code with postman and curl requests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions