empty-client-namespace
@azure-tools/typespec-client-generator-core/empty-client-namespaceSeverity: warning
This diagnostic is issued when @clientNamespace is given an empty or whitespace-only value.
Impact
Section titled “Impact”- Area: SDK namespace customization. Generation continues, but the empty
@clientNamespaceoverride cannot place generated declarations in a custom namespace. - Not affected: Model names, operation routes, and payload serialization are unchanged.
❌ Incorrect Usage
Section titled “❌ Incorrect Usage”@clientNamespace(" ") // client namespace is empty/whitespacemodel Widget {}Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
Cannot pass an empty value to the @clientNamespace decorator✅ How to Fix
Section titled “✅ How to Fix”Provide a non-empty namespace string or remove @clientNamespace.
@clientNamespace("Contoso.Widgets")model Widget {}Suppression
Section titled “Suppression”This diagnostic should not be suppressed. Give @clientNamespace a non-empty value, or remove the decorator.