Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVRO] Incorrect JSON in AVRO schema gets only "Failed to register schema in registry" message #34

Open
murbanowicz opened this issue May 10, 2024 · 0 comments

Comments

@murbanowicz
Copy link

First of all thank you for such an amazing piece of software.

We have small issue, which is not really breaking anything, but definitely makes it harder to catch errors quickly.

Incorrect JSON, particularly with trailing commas like this (after the id field definition) gives no clue on the CR description about the reason of failure.

{
    "type": "record",
    "name": "OrderCancelled",
    "fields": [
        {
            "name": "headers",
            "type": {
                "type": "record",
                "name": "Headers",
                "fields": [
                    {
                        "name": "id",
                        "type": "string"
                    }, // <<-- this comma
                ]
            }
        },
    ]
}

Would be nice to check JSON parsability before even trying to send it to Schema Registry and set the clear information if the JSON is not parsable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant