Validation of API requests and responses

Registered by Alexander Kislitsky

All API requests and responses must be validated. Validation of requests, responses structure and data types should be extracted to separate validation layer.

Protocol definition should be described in terms of jsonschema. Protocol must be as strict as possible. All required fields must be declared as required, e.t.c.

If request or response is invalid 400 http error is returned with error description and error code in the HTTP response body.

Protocol definition should be bound with the API version.

Steps to implementation:
1. extract validation logic into validation layer,
2. add validation into Node and NodeCollection handlers,
3. make required changes for the validation prototype approvement,
4. add validation into all handlers

Blueprint information

Status:
Not started
Approver:
Dmitry Pyzhov
Priority:
Undefined
Drafter:
Alexander Kislitsky
Direction:
Needs approval
Assignee:
Alexander Kislitsky
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.