Skip to content
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

Using alias and referencing models reports versioning errors #3438

Closed
timotheeguerin opened this issue May 23, 2024 · 0 comments · Fixed by #4146
Closed

Using alias and referencing models reports versioning errors #3438

timotheeguerin opened this issue May 23, 2024 · 0 comments · Fixed by #4146
Assignees

Comments

@timotheeguerin
Copy link
Member

import "@typespec/versioning";

using TypeSpec.Versioning;
@service
@versioned(Versions)
namespace Microsoft.IoTOperations;

/** Api versions */
enum Versions {
  v1,
}

model Bar {}

model Foo {
  ex: ExtendedLocation;
}

alias ExtendedLocation = {
  extendedLocation: Bar;
};

error
@typespec/versioning/using-versioned-library
Namespace 'global' is referencing types from versioned namespace 'Microsoft.IoTOperations' but didn't specify which versions with @useDependency.

Playground Link

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

Successfully merging a pull request may close this issue.

2 participants