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
Versions Used
Kaffy: 0.10.3
Phoenix: latest
Elixir: latest
What's actually happening?
when creating a new record via the form, when I enter valid data and click save, I get an error expected a map, got: nil from lib/kaffy/resource_error.ex:52, unfortunately there is nothing helpful in the stacktrace. I digged a little and put
schema"owners"dofield:name,:stringfield:state_name,:stringfield:street_name,:stringfield:street_number,:stringfield:zipcode,:stringfield:city_name,:stringfield:district_name,:stringfield:latitude,:floatfield:longitude,:float# every company can have a mother companybelongs_to:owner,__MODULE__timestamps()end
the only required field is name (no additional validation except for validate_required([:name]) and I entered random strings
@Anonyfox based on the POST url, I think the issue is that the resources config option is the cause of the issue. If you are setting the resources manually, try using owner instead of owners under the partner key.
Versions Used
Kaffy: 0.10.3
Phoenix: latest
Elixir: latest
What's actually happening?
when creating a new record via the form, when I enter valid data and click save, I get an error
expected a map, got: nil
fromlib/kaffy/resource_error.ex:52
, unfortunately there is nothing helpful in the stacktrace. I digged a little and putinto the callchain, and while the
schema
is the correct struct (albeit empty), the attrs are an empty map - my data should be in there, no?What should happen instead?
I click create and it creates the resource
Screenshots
If applicable, add screenshots to help explain your problem.
(the attribute in my schema is called
:name
if it helps.)The text was updated successfully, but these errors were encountered: