edgehog-device-manager / edgehog

Easily manage your IoT device fleet with Edgehog at once. Get information on device status, deploy updates, geolocate your devices and much more!
Apache License 2.0
34 stars 21 forks source link

Allow receiving `trigger_name` in `TriggerPayload` #664

Closed rbino closed 2 weeks ago

rbino commented 2 weeks ago

Astarte 1.2.0 added the trigger_name field to the HTTP trigger payload. Ash returns an error if unexpected inputs are received, so currently it returns an error if a trigger from an Astarte 1.2.0 instance is received.

This can be handled either explicitly adding trigger_name to the attributes here or adding an explicit :create action with skip_unknown_inputs: :*