Skip to content

Add Support for Polymorphism #27

@Danielku15

Description

@Danielku15

OData supports polymorphism via "@odata.type" annotations in objects. OpenApiQuery should support this too. Currently it is problematic as the deserializer cannot parse the JSON bind properties until @odata.type is known. But as JSON object keys are not ordered in any way, we cannot require @odata.type to be the first property.

This basically means we need to parse first the whole JSON text into a JSON DOM, and then convert the DOM into objects. This will likely degrade the performance and requires a change of the full deserializer system.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions