Support Schema Registry vendor-specific content types (application/vnd.schemaregistry.v1+json)#1643
Open
Support Schema Registry vendor-specific content types (application/vnd.schemaregistry.v1+json)#1643
Conversation
Co-authored-by: Haarolean <1494347+Haarolean@users.noreply.github.com>
Co-authored-by: Haarolean <1494347+Haarolean@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Schema Registry compatibility for Warpstream
Support Schema Registry vendor-specific content types (application/vnd.schemaregistry.v1+json)
Jan 19, 2026
Haarolean
requested changes
Feb 12, 2026
|
|
||
| // Configure decoder to accept APPLICATION_JSON and additional media types | ||
| MediaType[] allMediaTypes = new MediaType[additionalMediaTypes.length + 1]; | ||
| allMediaTypes[0] = MediaType.APPLICATION_JSON; |
… types Co-authored-by: Haarolean <1494347+Haarolean@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warpstream Schema Registry Compatibility Fix
Problem
When using Kafka UI with WarpStream's Schema Registry, the Schema Registry tab fails to load consistently. The error occurs because WarpStream returns
application/vnd.schemaregistry.v1+jsoncontent type, which is not supported by the current WebClient configuration that only acceptsapplication/json.Solution
Added support for Schema Registry vendor-specific content types in the WebClient configuration. This ensures compatibility with Confluent Schema Registry API standard content types that are used by WarpStream and other compatible implementations.
Plan
Changes Made
WebClientConfigurator.java:
createDefaultObjectMapper()to expose the default ObjectMapper configurationconfigureObjectMapperWithMediaTypes()that accepts additional MediaType parameters for the Jackson decoderapplication/jsonKafkaClusterFactory.java:
application/vnd.schemaregistry.v1+jsonandapplication/vnd.schemaregistry+jsonschemaRegistryClient()method to use the newconfigureObjectMapperWithMediaTypes()methodWebClientConfiguratorTest.java (new):
configureObjectMapperWithMediaTypes()method works correctlySecurity Review
Testing Notes
application/jsoncontent type is still supported alongside the new Schema Registry-specific typesOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.