Input to APIs should be validated
Currently type validation and whether parameter is mandatory or not is done through some Types implemenetd in zun.
I think when we have large number of types and other permutation combination of the parameter, its going to be difficult.
So we should find a way for this, like using Jsonschema or something else.
https:/
https:/
Blueprint information
- Status:
- Complete
- Approver:
- hongbin
- Priority:
- Medium
- Drafter:
- Pradeep Kumar Singh
- Direction:
- Approved
- Assignee:
- Pradeep Kumar Singh
- Definition:
- Approved
- Series goal:
- None
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- Pradeep Kumar Singh
- Completed by
- Pradeep Kumar Singh
Related branches
Related bugs
Bug #1612103: Validate all params in request for any resource | Fix Committed |
Bug #1634780: Add a param 'mandatory' to Type classes to make sure that field is not empty. | Fix Released |
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Propose api-validation blueprint
Addressed by: https:/
Initial implementation of jsonschema validatior
Addressed by: https:/
Add validators to the controllers
Gerrit topic: https:/
Addressed by: https:/
[WIP]
Addressed by: https:/
Remove Image and ZunService class from controllers
Addressed by: https:/
Add support for validation of query parameters
Addressed by: https:/
Remove Link class
@Pradeep, it looks this BP is already implemented?
-- hongbin 2017-03-05