Ash FrameworkAF
Ash Framework7mo ago
18 replies
Sienhopist

Can't disable derive_filter? in json API

I have this json API definition in my domain
json_api do
  routes do
    base_route "/runtime-config", MyApp.RuntimeConfig do
      # Unlike normal get actions, we only have one config. We don't want the `get` route to require "/:id".
      get :get, route: "", derive_filter?: false
    end
  end
end


And on the resource I have this
json_api do
  type "runtime-config"
end


Yet when I go to my open api page I still see input field for the filter.
Was this page helpful?