Honor schema validation everywhere

Registered by Dave Chen

schema validation was enforced by jsonschema for most of the V3 API, but we also need enforce the schema validation for the legacy keystone extensions after those extensions were moved into cores and enabled by default.

It's also great if we can enable the same thing for V2 APIs since V2 APIs will hang around for a long time and we not sure if there is a time that we will drop V2 support, and V2 API is still used extensively.

It makes for a more robust user experience if we get all of those done.

Some components we need to consider includes:
- endpoint_policy
- federation
- endpoint_filter
and all the V2 API stuff?

Blueprint information

Steve Martinelli
Dave Chen
Dave Chen
Series goal:
Accepted for newton
Milestone target:
milestone icon newton-3
Started by
Dave Chen
Completed by
Steve Martinelli

Related branches



(stevemar) bumping to newton-2
(stevemar 7/11/16) bumping to newton-3

(gagehugo - V3 appears to be done according to stevemar/DaveChen: https://review.openstack.org/#/c/342440/2)

as discussed in the keystone meeting, this blueprint should focus on providing schema validation for v3 extensions, then if possible, v2 calls as well.

Gerrit topic: https://review.openstack.org/#q,topic:bp/schema-validation-extent,n,z

Addressed by: https://review.openstack.org/262663 (merged)
    Add schema for identity provider

Addressed by: https://review.openstack.org/262768 (merged)
    Remove redundant check after enforcing schema validation

Addressed by: https://review.openstack.org/263161 (merged)
    Add schema for federation protocol

Addressed by: https://review.openstack.org/266791 (merged)
    Add schema for OAuth1 consumer API

Addressed by: https://review.openstack.org/344057 (merged)
    Add schema for enabling a user

Addressed by: https://review.openstack.org/345700 (merged)
    Add schema validation to create role

Addressed by: https://review.openstack.org/346594 (merged)
    Add schema validation to v2 create tenant

Addressed by: https://review.openstack.org/346962 (merged)
    Add schema validation to create service in v2

Addressed by: https://review.openstack.org/348115 (merged)
    Add the missing testcases for `name` and `enabled`

Addressed by: https://review.openstack.org/348116 (merged)
    No need the redundant validation in manager level

Addressed by: https://review.openstack.org/348531
    Add schema validation to create user v2

Addressed by: https://review.openstack.org/345022
    Add schema validation to update user in v2

Addressed by: https://review.openstack.org/348738 (merged)
    Add schema validation to v2 update tenant


Work Items

This blueprint contains Public information 
Everyone can see this information.