[openstack-dev] [Neutron] REST API - entity level validation

Avishay Balderman AvishayB at Radware.com
Thu Jun 5 11:01:44 UTC 2014


Hi
With the current REST API engine in neutron we can declare attributes validations.
We have a rich set of validation functions https://github.com/openstack/neutron/blob/master/neutron/api/v2/attributes.py
However we do not have the concept of entity level validation.

Example:
I have an API ‘create-something’ and Something is an entity having 2 attributes:
Something {
  Attribute A
 Attribute B
}
And according to the business logic A must be greater than B


As for today our framework cannot handle  this kind of validation and the call is going inside a lower layer of neutron and must be validated there.
Example: https://review.openstack.org/#/c/93871/9

With this we have the validations implemented across multi layers. I think we better have the validations in one layer.

Thanks

Avishay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140605/572e39be/attachment.html>


More information about the OpenStack-dev mailing list