kafka-ui
kafka-ui copied to clipboard
Content NOT SUPPORTED: keyword "id", use "$id" for schema ID
Issue submitter TODO list
- [X] I've looked up my issue in FAQ
- [X] I've searched for an already existing issues here
- [X] I've tried running
master-labeled docker image and the issue still persists there - [X] I'm running a supported version of the application which is listed here
Describe the bug (actual behavior)
I'am using the Apicurio Schema Registry. After I create a JSON schema and try to send a message, I get the following error message:
Content NOT SUPPORTED: keyword "id", use "$id" for schema ID
JSON Schema:
{
"$id": "https://training.com/EmployeeHasBeenCreatedEvent.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EmployeeHasBeenCreatedEvent",
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "The employee's id."
},
"name": {
"type": "string",
"minLength": 1,
"description": "The employee's name."
}
}
}
Reading messages based on the schema works well.
Generates mock JSON based on schema:
Expected behavior
Send the message.
Your installation details
83b5a60 v0.7.2
schema-registry:
image: apicurio/apicurio-registry-mem:2.6.1.Final
ports:
- "8081:8080"
kafka-ui:
image: provectuslabs/kafka-ui:v0.7.2
depends_on:
- kafka
ports:
- 8082:8080
environment:
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9093
- KAFKA_CLUSTERS_0_SCHEMAREGISTRY=http://schema-registry:8080/apis/ccompat/v7
- DYNAMIC_CONFIG_ENABLED='true'
Steps to reproduce
- Create schema
- Create topic
- Send message
Screenshots
No response
Logs
Nothing appears in the log.
Additional context
No response