-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller name selection direction #217
Comments
Just to make something clear:
produces
produces Bear in mind that path variable influences this behavior since for:
and
it's always the same - So I'm not sure what kind of 'reverse traversal' you have in mind. |
@stojsavljevic , are you talking about RAML 1.0?
and
and the resulting name is always the same: To be honest, I was not aware of that option, but it seems not to work as expected, or my expectation is different to the designed one. |
Sorry I didn't explain it well. So there are 2 config options:
I was using To get back to your original question - we can consider
|
At the moment, the very last segment inside the root path is taken as a basis for controller name:
RAML:
would generate controller named:
ErrorIdController
(it was actually errorIdController, just a couple of days ago before #215 fix).While it's not critical and can easily be circumvented with:
wouldn't it be nice to be able to set a flag inside a plugin that will use a reverse traversal for Controller naming?
What do you think, guys?
The text was updated successfully, but these errors were encountered: