You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (Jira)" <ji...@apache.org> on 2019/08/31 10:14:00 UTC

[jira] [Created] (SCB-1472) Allow users to disable the param validation by configuration

YaoHaishi created SCB-1472:
------------------------------

             Summary: Allow users to disable the param validation by configuration
                 Key: SCB-1472
                 URL: https://issues.apache.org/jira/browse/SCB-1472
             Project: Apache ServiceComb
          Issue Type: Improvement
          Components: Java-Chassis
            Reporter: YaoHaishi


In org.apache.servicecomb.swagger.invocation.validator.ParameterValidator the parameters are checked before actually passed into the business logic method. Currently this feature always works, and users have no way to disable it even if it's not needed.
We should add a config item to allow users disable this function. The config key is "servicecomb.rest.parameter.validation.enabled", and the default value is "true", which means parameter validator is enabled by default.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)