Created
December 2, 2016 21:25
-
-
Save ConnorRigby/116d2da535d08196432fe97e82175a28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> Farmbot.Sync.Database.Device.validate %{} | |
{:error, Farmbot.Sync.Database.Device, | |
{:missing_keys, ["id", "planting_area_id", "name", "webcam_url"]}} | |
iex(2)> Farmbot.Sync.Database.Device.validate %{} | |
{:error, Farmbot.Sync.Database.Device, | |
{:missing_keys, ["id", "planting_area_id", "name", "webcam_url"]}} | |
iex(3)> Farmbot.Sync.Database.Device.validate %{"id" => 1} | |
{:error, Farmbot.Sync.Database.Device, | |
{:missing_keys, ["planting_area_id", "name", "webcam_url"]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment