-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reference schema from other subject #426
Comments
We have the same situation described above by @treziac. We have also organized our Avro schemas in multiple files to enable reuse. But can't use Schema registry to resolve complex types that has references. Would be nice to have schema registry handle the references internally during registration/POST and respond back with fully built schema in response to GET. |
So is there any way to reference other types? We currently have a currency type that would be nice to have in multiple different schemas. |
any movement here? would love to know if i should kick this problem down the road for a bit (if there is something coming) or determine another way of solving it permanently for my needs |
Ditto. We have the same problem. Any updates? |
It is strange that schema-registry is not taking referencing across schemas into consideration. This is something native to the avro format. |
+1 same problem here when trying to create schemas for specific message types that share common fields |
Fixed by #1280 |
Hi,
Currently, it's not possible to reference type from an other schema, which would really be useful to manage schema across entreprise
example:
Subject "test.Product"
Subject "test.Order"
reference Product
Subject "otherTest.Catalog"
reference Product
We should be able to have three topics to not have duplicates
A solution would be, at registration of schema, to provide a referenced subjects
Then, at reception, for all unknown types, it would search if the type exists in the referencedTopics and would associate them with the given version.
When asking for a schema, it would concatenate all the schemas in a single one (internally, we can keep both schemas: the reference-one and the plain-one)
Compatibility is an other issue which can be solved with some rules - either have to update manually the schema with new versions in referencedTopics, or automatically with compatibility of each subject (more complicated)
The text was updated successfully, but these errors were encountered: