Consistent query parameters validation
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:
- ocata-3
- Started by
- Matt Riedemann
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Consistent query parameters validation
Addressed by: https:/
Adds support for versioned schema validation for query parameters
Addressed by: https:/
Use JSON-Schema to validate query parameters for keypairs API
Gerrit topic: https:/
Addressed by: https:/
Refactor the code to add generic schema validation helper
Addressed by: https:/
Update docstring of _schema_
Addressed by: https:/
Query parameter validation for usages API
Addressed by: https:/
Query parameter validation for hypervisors API
Addressed by: https:/
Query parameter validation for hosts API
Work Items
Dependency tree
* Blueprints in grey have been implemented.