[FEAT] Validate manifests to ensure links are unique #445
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
This issue is specifically designated as a good issue for Hacktoberfest
help wanted
Extra attention is needed
As of wasmCloud v1.3.0, you cannot define links from the same source on the same namespace, package, and interface but to two different targets without specifying a separate link name. This technically wasn't checked before in wasmCloud but it never worked for wasmCloud components, and only worked for capability providers because they are able to synthesize additional information in their implementations.
We need a validation rule to ensure that this is not possible when deploying a manifest, since it's just frustrating to have this pop up as an issue afterwards. In this validation rule, the following manifest should fail:
Note that above the links are effectively identical, but with different targets and configuration. The correct traits block is as follows:
The text was updated successfully, but these errors were encountered: