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

[v24.3.3] SchemaRegistryError: bundled schema with mismatched dialect #24958

Open
maver1ck opened this issue Jan 28, 2025 · 2 comments
Open

[v24.3.3] SchemaRegistryError: bundled schema with mismatched dialect #24958

maver1ck opened this issue Jan 28, 2025 · 2 comments
Labels
kind/bug Something isn't working

Comments

@maver1ck
Copy link

maver1ck commented Jan 28, 2025

Version & Environment

Redpanda version: (use rpk version): v24.3.3
confluent-kafka==2.8.0

What went wrong?

I'm trying to use Redpanda Schema Registry for sending records with JSON Schema.
Schema is generated from Pydantic Classes.
I'm getting error

confluent_kafka.schema_registry.error.SchemaRegistryError: bundled schema with mismatched dialect 'https://json-schema.org/draft/2020-12/schema#' for id key (HTTP status code 422, SR code 422)

What should have happened instead?

Schema should be registered. Confluent Schema Registry can handle it properly.
All the validators say its correct JSON Schema.

How to reproduce the issue?

  1. Download attached json file
  2. Publish it to redpanda
    Example request: curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" -d @wrong-schema.json http://redpanda.redpanda.svc:8081/subjects/test-json-wrong-value/versions
  3. See error:
    {"error_code":422,"message":"bundled schema with mismatched dialect 'https://json-schema.org/draft/2020-12/schema#' for id key"}

Additional information

wrong-schema.json

JIRA Link: CORE-8936

@maver1ck maver1ck added the kind/bug Something isn't working label Jan 28, 2025
@maver1ck maver1ck changed the title SchemaRegistryError: bundled schema with mismatched dialect [v24.3.3] SchemaRegistryError: bundled schema with mismatched dialect Jan 28, 2025
@maver1ck
Copy link
Author

I was also able to trigger this bug from Kafka Connect.
This is minimal schema request returning error.

small-wrong-schema.json

@rockwotj
Copy link
Contributor

FYI @aanthony-rp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants