Consistent query parameters validation

Registered by Alex Xu

 Currently the query parameters was parsed and validated with freestyle in the each API action method. It makes the API code hard to maintenance and error-prone. This specs aims to propose one consistent mechanism to parse and validate the query parameters.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
High
Drafter:
Alex Xu
Direction:
Approved
Assignee:
Alex Xu
Definition:
Approved
Series goal:
Accepted for ocata
Implementation:
Implemented
Milestone target:
milestone icon ocata-3
Started by
Matt Riedemann
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/consistent-query-parameters-validation,n,z

Addressed by: https://review.openstack.org/388518
    Consistent query parameters validation

Addressed by: https://review.openstack.org/389003
    Adds support for versioned schema validation for query parameters

Addressed by: https://review.openstack.org/398755
    Use JSON-Schema to validate query parameters for keypairs API

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-whitelist-for-server-list-filter-sort-parameters,n,z

Addressed by: https://review.openstack.org/412473
    Refactor the code to add generic schema validation helper

Addressed by: https://review.openstack.org/417118
    Update docstring of _schema_validation_helper

Addressed by: https://review.openstack.org/417500
    Query parameter validation for usages API

Addressed by: https://review.openstack.org/417507
    Query parameter validation for hypervisors API

Addressed by: https://review.openstack.org/418880
    Query parameter validation for hosts API

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.