Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Issue with union types when sending Avro data #28

@haydursek

Description

I am sending avro data with a schema that has a union type defined as one of my fields. As below:
{ "name" : "applicationId", "type": ["null", "string"], "default": null }

When I send a json that contains an actual value for this field or whether it is missing from the json totally, which would be the null case, I am getting the error below :

APIError: HTTP 422 Conversion of JSON to Avro failed: Failed to convert JSON to Avro: Expected start-union. Got VALUE_STRING

Is this not a valid schema definition and valid use case ?

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