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

No possibility to force payload belong to the namespace #87

Open
kemoc opened this issue Nov 29, 2024 · 0 comments
Open

No possibility to force payload belong to the namespace #87

kemoc opened this issue Nov 29, 2024 · 0 comments

Comments

@kemoc
Copy link

kemoc commented Nov 29, 2024

How to declare which namespace to use for this case?:

Schema:

    {
        "namespace": "sim.events",
        "type": "record",
        "name": "SIMEvent",
        "fields": [
            {
                "name": "id",
                "type": {
                    "type": "string",
                    "logicalType": "uuid",
                    "doc": "UUID7"
                }
            },
            {
                "name": "payload",
                "type": [
                    
                    {
                        "type": "record",
                        "name": "Barred",
                        "fields": [
                             {
                                "name": "customer_status",
                                "type": "string"
                            },
                            {
                                "name": "msisdn",
                                "type": [
                                    "null",
                                    "string"
                                ]
                            }
                        ]
                    },
                    {
                        "type": "record",
                        "name": "Unbarred",
                        "fields": [
                            {
                                "name": "customer_status",
                                "type": "string"
                            },
                            {
                                "name": "msisdn",
                                "type": [
                                    "null",
                                    "string"
                                ]
                            }
                        ]
                    }
                  ]
              }
        ]
    }

every time message.payload is in Kafka (even i sends Unbarred event):
sim.events.Barred

if i know in Java that declaration is possible

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