Bicep error code - BCP292

This error occurs when you have a decorator that is expecting to be followed by a param or output or type declaration, but miss the declaration.

Error description

Expected a parameter, output, or type declaration after the decorator.

Examples

The following example raises the error because there is no type declaration after the @metadata, @minValue(), @maxValue(),@minLength(), @maxLength(), @discriminator(), or @sealed() decorator.

@minLength()

You can fix the error by removing the decorator and adding the correct type declaration.

@minLength(3)
param name string

For more information, see Decorators.

Next steps

For more information about Bicep error and warning codes, see Bicep core diagnostics.