avro schema namespace/name vs apicurio artifact groupId/name #2309
Replies: 2 comments 1 reply
-
|
The answer to the first is "yes" in most cases. I think it typically makes sense, but not always. You can use the "group" concept in registry for whatever you want (e.g. group artifacts by team or by project), so it probably depends on the use-case. The second part is trickier. The API doesn't currently lend itself well to what you are suggesting. Because you would be using a REST call like this:
This would result in an artifact created in group "foo". I think we could introduce a new API endpoint perhaps that allowed auto-discovery of both the artifactId and the groupId. So it's an interesting idea. @Apicurio/developers any thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
We need to consider how would we derive the group & artifact names from other schema types. Avro has the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it safe to assume that when my avro schema uses namespace="foo" and name="Bar" that it is a good idea to use groupId="foo" and name="Bar" as well when I upload the schema file?
If so ... couldn't the registry automatically derive namespace/name from an avro schema, so we do not risk typos when registering?
Beta Was this translation helpful? Give feedback.
All reactions