JSON Schema Validation for query param

Registered by Ghanshyam Mann

This is continuation of below BP-
https://blueprints.launchpad.net/nova/+spec/consistent-query-parameters-validation

In Ocata BP, query param validation framework was implemented with keypair API as example. Basically methods accept query param can be decorated with json schema to have consistency and to avoid DB failure for wrong param.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Ghanshyam Mann
Direction:
Approved
Assignee:
Ghanshyam Mann
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-2
Started by
Ghanshyam Mann
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

I'm OK with this as a specless blueprint provided it does not mean we have any microversion changes as a result. -- mriedem 20170905

Yea, it would not change any behavior and so does not need version bump. We discussed the 'limit' as int in quotes (as string) which is not valid case for query param
- http://eavesdrop.openstack.org/meetings/nova_api/2017/nova_api.2017-09-06-13.01.log.html
- test patches https://review.openstack.org/#/c/501202/1 , https://review.openstack.org/#/c/501211/2 -- gmann 20170906

Gerrit topic: https://review.openstack.org/#q,topic:bp/json-schema-validation-for-query-param,n,z

Addressed by: https://review.openstack.org/499091
    check query param for used_limits function

Addressed by: https://review.openstack.org/489492
    check query param for service's index function

Addressed by: https://review.openstack.org/500347
    check query param for server groups function

Addressed by: https://review.openstack.org/507344
    Implement query param schema for GET hypervisor(2.33)

Addressed by: https://review.openstack.org/507480
    Implement query param schema for simple_tenant_usage

Addressed by: https://review.openstack.org/513668
    Implement query param schema for delete assisted vol

Addressed by: https://review.openstack.org/513699
    Implement query param schema for host index

Addressed by: https://review.openstack.org/513890
    Implement query param schema for fping index

Addressed by: https://review.openstack.org/515413
    Implement query param schema for flavor index

Addressed by: https://review.openstack.org/518644
    Implement query param schema for migration index

Addressed by: https://review.openstack.org/521329
    Implement query param schema for quota set APIs

Addressed by: https://review.openstack.org/521353
    Implement query param schema for sec group APIs

Addressed by: https://review.openstack.org/521368
    Implement query param schema for volume, snapshot API

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.