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
CCompat Layer SchemaType with JSON #1905
Comments
Hi @christofluethi. We fixed some of the problems mentioned above already and I'm working to get the other ones fixed as soon as possible. Do you mind sharing the jsonschema you used in your testing so I can confirm when it's working with the same example? Thanks |
Hi @carlesarnal. that sounds great. You may find the tests i did in the curls above. That is the one which failed for me with a simple JSON-Schema:
|
Hi @carlesarnal What was the reason for #1677? Even the title says something that is not compatible with CP. |
Hi, Although AFAIK it's not documented, the API returns the schemaType when the registered schema is not AVRO. You can check the rest object being used here. And you have an example I created locally where I registered a json schema and the response contains the schemaType:
As is stated on this thread, there are some issues when working with json schemas that are being fixed right now, but the schemaType must be returned when working with either json schema or protobuf. If you still think there's an issue, please, open a new issue (since the question you're arising is not directly related to this one) and I will take a look. Thanks! |
My comment was related to this issue because the unexpected behaviour is described in the original post by @christofluethi.
|
Then your issue is that the schemaType is also returned for avro schemas? If that's the case, is a known issue and we're working to fix it (and others) but, as I said, the schemaType must be returned for json and protobuf. The issue with it being returned now with a wrong value is something we're aware of and working to fix it. |
Yes. Ok, I see your reason for the field for JSON and Protobuf which, you're right, is undocumented CP behaviour. |
@christofluethi these problems should've been fixed on the master branch so I'm closing this. Once you have some time, can you confirm it's working as expected for you? If there are any issues, feel free to re-open. Thanks |
Hi there.
Related to #1660 we are currently we are having issues with JSON schema type and the confluent compatibility layer.
Confluent
Avro
Json
Apicurio Registry
Avro
Json
From my perspective:
/schemas/ids
is not working/subjects
is missing the schemaType and therefore defaults to AVROWe are using 2.1.0.Final and this is currently blocking us from moving forward.
The text was updated successfully, but these errors were encountered: