You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Error/warning - The type <type-name> does not contain property <property-name>.
4
+
ms.topic: reference
5
+
ms.custom: devx-track-bicep
6
+
ms.date: 08/06/2024
7
+
---
8
+
9
+
# Bicep error/warning code - BCP052
10
+
11
+
This error/warning occurs when you reference a property that isn't defined in the [data type](../data-types.md) or the [user-defined data type](../user-defined-data-types.md).
12
+
13
+
## Error/warning description
14
+
15
+
`The type <type-name> does not contain property <property-name>.`
16
+
17
+
## Examples
18
+
19
+
The following example raises the error _object_ doesn't contain a property called _bar_:
20
+
21
+
```bicep
22
+
type foo = object.bar
23
+
```
24
+
25
+
You can fix the error by removing the property:
26
+
27
+
```bicep
28
+
type foo = object
29
+
```
30
+
31
+
## Next steps
32
+
33
+
For more information about Bicep error and warning codes, see [Bicep warnings and errors](../bicep-core-diagnostics.md).
description: Error/warning - The property <property-name> requires a value of type <type-name>, but none was supplied.
4
+
ms.topic: reference
5
+
ms.custom: devx-track-bicep
6
+
ms.date: 08/06/2024
7
+
---
8
+
9
+
# Bicep error/warning code - BCP078
10
+
11
+
This error/warning occurs when you reference a [custom-tagged union data type](../data-types.md#custom-tagged-union-data-type), but the required value isn't provided.
12
+
13
+
## Error/warning description
14
+
15
+
`The property <property-name> requires a value of type <type-name>, but none was supplied.`
16
+
17
+
## Examples
18
+
19
+
The following example raises the error because the property _type_ with the value of _`foo`_ or `_bar_` isn't provided.
description: Error/warning - The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>?
4
+
ms.topic: reference
5
+
ms.custom: devx-track-bicep
6
+
ms.date: 08/06/2024
7
+
---
8
+
9
+
# Bicep error/warning code - BCP088
10
+
11
+
This error/warning occurs when a value of a property seems to be a typo.
12
+
13
+
## Error/warning description
14
+
15
+
`The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>?`
16
+
17
+
## Examples
18
+
19
+
The following example raises the error because _name_ value _ad_ looks like a typo.
0 commit comments