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
|`oc.parameters[key].mandatory`|`boolean`| ⚪ **Optional**| If `true`, parameter is required (default: `false`) |
207
+
|`oc.parameters[key].description`|`string`| 🔧 **Recommended**| Parameter description for documentation |
208
+
|`oc.parameters[key].example`|`string`| 🔧 **Recommended**| Example value for documentation |
209
+
|`oc.parameters[key].default`|`any`| ⚪ **Optional**| Default value when parameter not provided |
210
+
|`oc.parameters[key].enum`|`array`| ⚪ **Optional**| Restrict parameter to specific values (e.g., `["red", "green", "blue"]`) |
211
+
212
+
**Enum Parameter Example:**
213
+
214
+
The `enum` property is particularly useful when you want to restrict parameter values to a predefined set of options. This provides better validation, documentation, and prevents invalid values from being passed to your component.
When a parameter with an `enum` is provided with a value not in the allowed list, the registry will return a validation error with the allowed values listed.
0 commit comments