Apicurio / apicurio-registry

An API/Schema registry - stores APIs and Schemas.
https://www.apicur.io/registry/
Apache License 2.0
598 stars 265 forks source link

Add labels to Registry search results (capped by configurable # of labels to return per item) #5378

Open EricWittmann opened 4 hours ago

EricWittmann commented 4 hours ago

The idea here is to include labels for Groups, Artifacts, and Versions in search results for those entities. We don't do that now because the # of labels is unbounded, and it's not great practice to return an unbounded collection in a REST API response, let alone an unbounded number of items per search result item.

So we're going to return labels, but we'll cap the # of labels per item. The cap will be globally configurable via an ENV var.

EricWittmann commented 4 hours ago

Duplicate of: https://github.com/Apicurio/apicurio-registry/issues/5219