-
Notifications
You must be signed in to change notification settings - Fork 269
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
Include ArtifactType header in REST response to /ids/* requests #5209
Comments
Thank you for reporting an issue! Pinging @andreaTP to respond or triage. |
This could be done fairly easily for the @carlesarnal @jsenko wdyt? |
We could add the content type for the other calls ( There are two possible ideas here:
|
I think if we want this feature then we simply implement it and assume the result will be correct as long as users of the registry don't screw up. We can look up the artifact type of one of the artifacts referencing the content. We can then simply return that value cuz it will be right almost every time. The only time it won't be right is if somebody registered an artifact under the incorrect artifact type. |
I think adding the header for just globalIds response is fine; for the use-case I am thinking of (a python program that can render any kafka message as human-readable yaml without prior knowledge of the schema type) it will likely require the |
I'm trying to replicate the confluent-kafka-python schema_registry_client behavior. in its get_schema(schema_id) method, the returned object includes both the schema contents string and its type.
Currently, using these api calls
/ids/contentIds/{id}
,/ids/globalIds/{id}
and/ids/contentHashes/{hash}
we get the artifact version contents string, but no indication of the artifact type.can you add a response header with the artifact's type? this change wouldn't impact other clients, but would help to achieve feature parity with the confluent python client.
The text was updated successfully, but these errors were encountered: