Skip to content

Parent data in custom converter #144

@andreas-aeschlimann

Description

@andreas-aeschlimann

As of now, the JsonCustomConvert interface has the methods serialize(data: T): any and deserialize(data: any): T.

In some cases, the (de-)serialization might be dependent on the parent's object values. We could add an optional parameter parentData?: any in both methods that contains the parent data (object) if it exists, undefined otherwise.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions