mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-26 15:47:21 +00:00
This allows a user to add/update a custom regex and a cue while defining custom attributes(Only applicable for type- text). While adding/editing custom attributes, the values are validated against the attribute definition regex, and if it is incorrect, a cue message or default error message is shown and restricts invalid values from being saved. Fixes: #6866
13 lines
524 B
Ruby
13 lines
524 B
Ruby
json.id resource.id
|
|
json.attribute_display_name resource.attribute_display_name
|
|
json.attribute_display_type resource.attribute_display_type
|
|
json.attribute_description resource.attribute_description
|
|
json.attribute_key resource.attribute_key
|
|
json.regex_pattern resource.regex_pattern
|
|
json.regex_cue resource.regex_cue
|
|
json.attribute_values resource.attribute_values
|
|
json.attribute_model resource.attribute_model
|
|
json.default_value resource.default_value
|
|
json.created_at resource.created_at
|
|
json.updated_at resource.updated_at
|