provectus/kafka-ui

Content NOT SUPPORTED: keyword "id", use "$id" for schema ID

vicziani opened this issue ยท 3 comments

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • 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.

image

image

Generates mock JSON based on schema:

image

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

  1. Create schema
  2. Create topic
  3. Send message

Screenshots

No response

Logs

Nothing appears in the log.

Additional context

No response

Hello there vicziani! ๐Ÿ‘‹

Thank you and congratulations ๐ŸŽ‰ for opening your very first issue in this project! ๐Ÿ’–

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. ๐Ÿ‘€

this repo is not maintained (#4255), see https://github.com/kafbat/kafka-ui

Thank you, I moved there, see kafbat/kafka-ui#476