Properties
| Name | Type | Description |
|---|---|---|
| classname | string | |
| label | string | |
| show_label | boolean | |
| placeholder | string | |
| error_messages | object | |
| property_name | string | |
| required | boolean | |
| display_device | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/OptInCodeProperties",
"title": "OptInCodeProperties",
"type": "object",
"properties": {
"classname": {
"type": "string",
"nullable": true
},
"label": {
"type": "string",
"nullable": true
},
"show_label": {
"type": "boolean",
"default": false
},
"placeholder": {
"type": "string",
"nullable": true
},
"error_messages": {
"$ref": "#/components/schemas/ErrorMessages",
"nullable": true
},
"property_name": {
"type": "string",
"example": "opt_in_code",
"default": "opt_in_code",
"enum": [
"opt_in_code"
]
},
"required": {
"type": "boolean",
"example": true,
"default": true,
"enum": [
true
]
},
"display_device": {
"type": "array",
"items": {
"type": "string",
"enum": [
"both",
"desktop",
"mobile"
],
"description": "Enumeration for mobile and desktop."
}
}
}
}