Closed XSven closed 3 months ago
I'm not sure what you want. Are you expecting something else than 404 Not Found?
I have properly configured the OpenAPI
plugin using the op_spec_to_route
attribute and I have used the location suggested by the mojo
tool (at the time the Mojolicious::Lite
was created) to store the controller. I am missing a warning that tells me that the configuration is incomplete due to
<Mojolicious::Lite application> eval -V 'app->routes->namespaces'
[]
or even better the Controller location suggested by the mojo
tool should be a member of the namespaces array.
I don't know how to do that. I will consider a PR though.
Steps to reproduce the behavior
I have used the
mojo
tool to create aMojolicious::Lite
application. I have enabled theOpenAPI
plugin. I have usedsuggested in the op_spec_to_route experimental feature to configure controller based request dispatching.
Expected behavior
I would like to get a warning that an existing controller configuration is dropped due to missing namespace configuration
Actual behavior
No information about my incomplete setup was provided. As a Mojolicious newbie this was an annoying experience.