How to use router helpers in an non-web application inside an umbrella project to generate url given that:
Inverting application dependencies is not an option - view tests depends on the schemas from the non-web application
The url generation occurs 3 modules down: Controller -> Orchestration module -> Operation module -> Utility module and passing an pregenerated url from controller all the way down is awkward.
I’d use a configuration to for the main app like config :myapp, route_helpers: MyAppWeb.Router.Helpers, endpoint: MyAppWeb.Endpoint and use those to generate the urls. So you at least don’t have hardcoded coupling. But in the end your main app is still depending on the web layer if you’re not creating an different way to build those urls.