no-private-usage
@azure-tools/typespec-azure-core/no-private-usageVerify that elements inside Private namespace are not referenced.
Verify that a spec is not referencing items from another library using a private namespace.
Impact
Section titled “Impact”- Area: API, SDK
Using private or internal declarations risks a spec break when they change.
❌ Incorrect
Section titled “❌ Incorrect”@Azure.Core.Foundations.Private.embeddingVector(string)model Foo {}Using items from a private namespace within the same library is allowed.
namespace MyService;
@MyService.Private.myPrivateDecoratormodel Foo {}
namespace Private { extern dec myPrivateDecorator(target);}Suppression
Section titled “Suppression”Suppress only when required to match an existing API; otherwise use the standard types and templates.