Closed stojsavljevic closed 5 years ago
It seems that enum as @RequestParam
is not handled well in Spring. E.g. if enum contains 2 constants like this:
public enum Test{
A("a"), B("b")
...
}
request param value will have to match to constant name
instead of constant value
(in this example request param value has to be upper case). Some binder has to be added to controller but this is too cumbersome to support.
Despite limitation explained above I'll fix:
@Valid
annotation missing from interface in case of Spring4ControllerDecoratorRule
raml like this:
will generated method where
brandName
is aString
.BrandName
enum will be generated but not referenced.If
brandName
is a data type enum will be referenced as it should be.