invalid-client-doc-mode
@azure-tools/typespec-client-generator-core/invalid-client-doc-modeSeverity: error
This diagnostic is issued when @clientDoc receives a mode whose value is not "append" or "replace".
Impact
Section titled “Impact”- Area: Generated SDK documentation customization. Blocks the
@clientDocoverride because TCGC cannot decide whether to append or replace documentation. - Not affected: SDK type names, operation signatures, and service behavior are unchanged.
❌ Incorrect Usage
Section titled “❌ Incorrect Usage”enum CustomDocMode { prepend: "prepend",}
@clientDoc("Client-specific text.", CustomDocMode.prepend) // mode must be `append` or `replace`model Widget {}Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
Invalid mode 'prepend' for @clientDoc decorator. Valid values are "append" or "replace".✅ How to Fix
Section titled “✅ How to Fix”Pass DocumentationMode.append or DocumentationMode.replace to @clientDoc.
@clientDoc("Client-specific text.", DocumentationMode.append)model Widget {}