route :patch, "/licenses/confirm_download", :download_all do description """ Use this route to update the `downloaded_at`/`downloaded_by` attributes after your application has successfully implemented the licenses. """ end
route :patch, "/licenses/confirm_download", :download_all do description """ Use this route to update the `downloaded_at`/`downloaded_by` attributes after your application has successfully implemented the licenses. """ end
I am getting an error that points toward the resource not being set in the generated route, but I see no way to set it, IMO it should be set automatically when I define the route within a resource.
[error] ** (KeyError) key :returns not found in: nilIf you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map (ash_json_api 1.5.1) lib/ash_json_api/json_schema/json_schema.ex:1057: AshJsonApi.JsonSchema.target_schema/3 (ash_json_api 1.5.1) lib/ash_json_api/json_schema/json_schema.ex:91: AshJsonApi.JsonSchema.route_schema/4 (ash_json_api 1.5.1) lib/ash_json_api/request.ex:82: AshJsonApi.Request.from/7 (ash_json_api 1.5.1) lib/ash_json_api/controllers/generic_action_route.ex:23: AshJsonApi.Controllers.GenericActionRoute.call/2 (license_tracker 0.1.0) deps/plug/lib/plug/router.ex:263: anonymous fn/4 in LicenseTrackerWeb.AshJsonApiRouter.dispatch/2 (telemetry 1.3.0) /Users/tux/projects/zis/license-tracker/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3 (license_tracker 0.1.0) deps/plug/lib/plug/router.ex:259: LicenseTrackerWeb.AshJsonApiRouter.dispatch/2 (license_tracker 0.1.0) lib/license_tracker_web/ash_json_api_router.ex:1: LicenseTrackerWeb.AshJsonApiRouter.plug_builder_call/2 (phoenix 1.8.3) lib/phoenix/router/route.ex:55: Phoenix.Router.Route.call/2 (phoenix 1.8.3) lib/phoenix/router.ex:416: Phoenix.Router.__call__/5 (license_tracker 0.1.0) lib/license_tracker_web/endpoint.ex:1: LicenseTrackerWeb.Endpoint.plug_builder_call/2 (license_tracker 0.1.0) license_tracker/deps/plug/lib/plug/debugger.ex:155: LicenseTrackerWeb.Endpoint."call (overridable 3)"/2 (license_tracker 0.1.0) lib/license_tracker_web/endpoint.ex:1: LicenseTrackerWeb.Endpoint.call/2 (phoenix 1.8.3) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.10.2) lib/bandit/pipeline.ex:131: Bandit.Pipeline.call_plug!/2 (bandit 1.10.2) lib/bandit/pipeline.ex:42: Bandit.Pipeline.run/5 (bandit 1.10.2) lib/bandit/http1/handler.ex:13: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.10.2) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.10.2) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 6.2.2) gen_server.erl:2335: :gen_server.try_handle_continue/3
[error] ** (KeyError) key :returns not found in: nilIf you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map (ash_json_api 1.5.1) lib/ash_json_api/json_schema/json_schema.ex:1057: AshJsonApi.JsonSchema.target_schema/3 (ash_json_api 1.5.1) lib/ash_json_api/json_schema/json_schema.ex:91: AshJsonApi.JsonSchema.route_schema/4 (ash_json_api 1.5.1) lib/ash_json_api/request.ex:82: AshJsonApi.Request.from/7 (ash_json_api 1.5.1) lib/ash_json_api/controllers/generic_action_route.ex:23: AshJsonApi.Controllers.GenericActionRoute.call/2 (license_tracker 0.1.0) deps/plug/lib/plug/router.ex:263: anonymous fn/4 in LicenseTrackerWeb.AshJsonApiRouter.dispatch/2 (telemetry 1.3.0) /Users/tux/projects/zis/license-tracker/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3 (license_tracker 0.1.0) deps/plug/lib/plug/router.ex:259: LicenseTrackerWeb.AshJsonApiRouter.dispatch/2 (license_tracker 0.1.0) lib/license_tracker_web/ash_json_api_router.ex:1: LicenseTrackerWeb.AshJsonApiRouter.plug_builder_call/2 (phoenix 1.8.3) lib/phoenix/router/route.ex:55: Phoenix.Router.Route.call/2 (phoenix 1.8.3) lib/phoenix/router.ex:416: Phoenix.Router.__call__/5 (license_tracker 0.1.0) lib/license_tracker_web/endpoint.ex:1: LicenseTrackerWeb.Endpoint.plug_builder_call/2 (license_tracker 0.1.0) license_tracker/deps/plug/lib/plug/debugger.ex:155: LicenseTrackerWeb.Endpoint."call (overridable 3)"/2 (license_tracker 0.1.0) lib/license_tracker_web/endpoint.ex:1: LicenseTrackerWeb.Endpoint.call/2 (phoenix 1.8.3) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.10.2) lib/bandit/pipeline.ex:131: Bandit.Pipeline.call_plug!/2 (bandit 1.10.2) lib/bandit/pipeline.ex:42: Bandit.Pipeline.run/5 (bandit 1.10.2) lib/bandit/http1/handler.ex:13: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.10.2) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.10.2) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 6.2.2) gen_server.erl:2335: :gen_server.try_handle_continue/3
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.