conflict-access-override
@azure-tools/typespec-client-generator-core/conflict-access-overrideSeverity: warning
This diagnostic is issued when an @access override conflicts with access already calculated from an operation or another @access override.
Impact
Section titled “Impact”- Area: Generated SDK visibility. Generation continues using the access level TCGC calculated from operations or earlier overrides, so the conflicting override may not hide the type.
- Not affected: Serialization, wire payloads, and service routes are unchanged.
❌ Incorrect Usage
Section titled “❌ Incorrect Usage”@access(Access.internal) // conflicts with public access inferred from `op test`model A {}
op test(@body body: A): void;Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
@access override conflicts with the access calculated from operation or other @access override.✅ How to Fix
Section titled “✅ How to Fix”Align access settings so each generated type has one consistent access level, or remove the conflicting override.
@access(Access.internal)model A {}
@access(Access.internal)op test(@body body: A): void;Suppression
Section titled “Suppression”This diagnostic should not be suppressed. Make the access settings consistent so the type has a single access level.