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
feat(hooks): developers can dynamically add or remove smart actions fields (#465)
BREAKING CHANGE: fields parameters on hook function is no longer a map of field, it is now an array.
change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook.
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,nil,"The field attribute must be defined")if !field || field[:field].nil?
26
+
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,nil,"The field attribute must be a string.")if !field[:field].is_a?(String)
27
+
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,field[:field],"The description attribute must be a string.")iffield[:description] && !field[:description].is_a?(String)
28
+
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,field[:field],"The enums attribute must be an array.")iffield[:enums] && !field[:enums].is_a?(Array)
29
+
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,field[:field],"The reference attribute must be a string.")iffield[:reference] && !field[:reference].is_a?(String)
raiseForestLiana::Errors::SmartActionInvalidFieldError.new(action_name,field[:field],"The type attribute must be a valid type. See the documentation for more information. https://docs.forestadmin.com/documentation/reference-guide/fields/create-and-manage-smart-fields#available-field-options.")if !is_type_valid
0 commit comments