Validation of request body using json schema
The purpose of this blueprint is to validate the request body in the API layer using json schema validation before it is forwarded to any of the other Blazar components. If the request body doesn't comply with the associated json schema defined for the respective API, it will return 400 error with appropriate error message.
Presently, validation of request body is scattered all throughout the code crossing boundaries of API layer. We will need to refactor all such code by adding a decorator which will be called at the entry point of each API implemented in the controller.
Blueprint information
- Status:
- Not started
- Approver:
- Pierre Riteau
- Priority:
- Undefined
- Drafter:
- Asmita Singh
- Direction:
- Needs approval
- Assignee:
- Asmita Singh
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add spec of json Schema Validation for Blazar API