Bicep diagnostic code - BCP166
This diagnostic occurs when you have duplicate decorators.
Duplicate <decorator-name> decorator.
Error
Remove the duplicate decorator.
The following example raises the diagnostic because there's two duplicate decorators.
@description('foo')
@description('bar')
param name string
You can fix the diagnostic by removing one of the duplicate decorators.
@description('bar')
param name string
For more information, see Decorators.
For more information about Bicep diagnostics, see Bicep core diagnostics.