mark-as-lro-ineffective
@azure-tools/typespec-client-generator-core/mark-as-lro-ineffectiveSeverity: error
This diagnostic is issued when @markAsLro is applied to an operation that already has real LRO metadata.
Impact
Section titled “Impact”- Area: LRO SDK metadata. Blocks or rejects a redundant legacy LRO marker when the operation already has real long-running-operation metadata.
- Not affected: Existing LRO polling metadata remains the source of generated behavior.
Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
@markAsLro decorator is ineffective since this operation already returns real LRO metadata. Please remove the @markAsLro decorator.✅ How to Fix
Section titled “✅ How to Fix”Remove @markAsLro from operations that are already modeled as long-running operations.