Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
MIT License
4.54k stars 728 forks source link

Compilation fail with error " didn't specify which versions with @useDependency." #4949

Closed pshao25 closed 2 months ago

pshao25 commented 2 months ago

Repro step: After this PR merged, run npm run generate swagger anomalyDetector under openapi-to-typespec. It fails with

error @typespec/versioning/using-versioned-library: Namespace 'AnomalyDetectorClient' is referencing types from versioned namespace 'Azure.Core.Foundations' but didn't specify which versions with @useDependency.