KambojaJS use static analysis when generating the route from controller. Static analysis mean, the issue analyzed before the the code/controller ran by the request handler. This is useful to prevent developer from getting error that sometime hard to trace, and identify the issue immediately
Here are the list of static analysis provided.
Unassociated Parameter occur when you defined a parameter in the route but the backing parameter in the action is not exists.
Missing Route Parameters Only applied on GET method, occur when action contains parameter but route doesn’t have the appropriate parameter.
Missing Action Parameters occur when router contains parameter, but action doesn’t have any parameter
Conflict Decorators occur when some decorator applied to an action analyzed cause conflict. for example
@routedecorator applied with
Duplicate Routes occur when duplicate route defined accidentally
DuplicateParameter Name occur when duplicate parameter applied on the route, possibly happened in combination of
Class not inherited from controller occur when a class that is appears in the
controllerfolder but not inherited from controller
Class not exported occur when a controller you provide in the
controllerfolder not exported. This warning also applied for the namespaces.
Convention fail occur when you are using
ApiControlleryour method is match with the convention name but has lack of parameters.
Reserved word used occur when you are accidentally override the methods of the controller such as