Ash FrameworkAF
Ash Framework3y ago
7 replies
richaard0

ResourceValidations error

I just updated a bunch of deps and something that worked fine before just doesn't right now.

I have the following error:
** (EXIT from #PID<0.104.0>) an exception was raised:
    ** (RuntimeError) Resource `Vigil.Operations.Airline` in relationship `:airline` is not accepted by api `Vigil.Accounts`. Please do one of the following...


On my User resource, I have the following relationship:
  relationships do
    belongs_to :airline, Vigil.Operations.Airline do
      api Vigil.Operations
      allow_nil? false
    end
  end


It was my understanding that it should be fine if I specify which api this belongs to, am I missing something?
Was this page helpful?