[
https://issues.apache.org/jira/browse/CLOUDSTACK-9361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279607#comment-15279607
]
ASF subversion and git services commented on CLOUDSTACK-9361:
-------------------------------------------------------------
Commit 95abb6efc350189cb2be0cfd655c1205ced42155 in cloudstack's branch
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=95abb6e ]
CLOUDSTACK-9361: Centrally handle API validations
Validate API arguments based on annotations. Introduces:
- NotNullOrEmpty: for doing null and empty string checks
- PositiveNumber: number > 0 (natural number)
Signed-off-by: Rohit Yadav <[email protected]>
> Implement framework level API arg checks
> ----------------------------------------
>
> Key: CLOUDSTACK-9361
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9361
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
>
> We do a lot of npe and id > 0 checks in api cmds, the aim of this ticket is
> to do such validations at api-server level in ProcessParamWorker and
> introduce validators in api parameters annotations
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)