Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.03 KB

File metadata and controls

40 lines (26 loc) · 1.03 KB
title BCP292
description Expected a parameter, output, or type declaration after the decorator.
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

Bicep diagnostic code - BCP292

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

Description

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

Level

Error

Examples

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

@minLength()

You can fix the diagnostic 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 diagnostics, see Bicep core diagnostics.