Skip to content

Change JSON serialization format: use type as discriminator field #465

@grzegorz-orbital

Description

@grzegorz-orbital

The JSON serialization format should be updated so that structures use a discriminator field named type.
Instead of nesting variant data under the variant name, the variant should be expressed using a top-level type field.

Example before:

{
    "variant": {
        "field1": "string",
        "field2": 123
    }
}

Example after:

{
    "type": "variant",
    "field1": "string",
    "field2": 123
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions