ash json api don't work with aggregates
I have a resource that has this aggregate:
If I add json api for that resource like this:
If I try to get that resource with
Which happens in the
This is what the
Which means that the function is called with:
If I add json api for that resource like this:
If I try to get that resource with
curl 'localhost:4000/api/markets/property' I will get this error:Which happens in the
json_schema.ex:505 file.This is what the
agg variable has at the time the error happens:Which means that the function is called with:
Aggregate.kind_to_type(:first, nil)