Validation of request body using json schema

Registered by Asmita Singh

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

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/json-schema-validation

Addressed by: https://review.opendev.org/661680
    Add spec of json Schema Validation for Blazar API

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.