Skip to content

no-private-usage

Full name
@azure-tools/typespec-azure-core/no-private-usage

Verify that a spec is not referencing items from another library using a private namespace.

@Azure.Core.Foundations.Private.embeddingVector(string)
model Foo {}

Using items from a private namespace within the same library is allowed.

namespace MyService;
@MyService.Private.myPrivateDecorator
model Foo {}
namespace Private {
extern dec myPrivateDecorator(target);
}