Skip to content

versionedDependency decorator is confusing #857

Description

Feedback from the most recent ARB review was that the @versionedDependency decorator was confusing.

@versionedDependency([[Versions.A, Azure.Core.Versions.v1_0_Preview_1]])

This was interpreted as the spec depending on itself. Additionally, what if a spec depends on specific versions of other libraries? Does it need to look like this?

@versionedDependency([[Version.A, Azure.Core.Versions.v1_0_Preview_1], [Version.A, Azure.Foo.Versions.v1_0_Preview_1]])```

A possible alternative would be to use a dictionary with the key as the spec version and an array of dependencies.

@versionedDependency({
  Version.A: [
    Azure.Core.Versions.v1_0_Preview_1,
    Azure.Foo.Versions.v_1_0_Preview_1
  ],
  ...
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

design:neededA design request has been raised that needs a proposal

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions