[openstack-dev] [Keystone] Use JSON Schemas to validate API requests data

Jarret Raim jarret.raim at RACKSPACE.COM
Sun Jun 2 15:09:29 UTC 2013


Both the Barbican (Key Management) and Meniscus (Logging) projects are moving down the path of using jsonschema for message validation.
Jarret
From: Bruno Semperlotti [mailto:bruno.semperlotti at gmail.com]
Sent: Sunday, June 02, 2013 4:12 AM
To: openstack-dev at lists.openstack.org
Subject: [openstack-dev] [Keystone] Use JSON Schemas to validate API requests data
Hi,
As a first contribution, I recently worked on a small bug about bad error response when passing incorrect parameters in API requests (#1110435<https://bugs.launchpad.net/keystone/+bug/1110435>).
There is also this other bug about bad application behavior when API requests data are incorrect or missing (#999084<https://bugs.launchpad.net/keystone/+bug/999084>)
My point is that no systematic data validation seems to be made when receiving API requests, leading to potential unwanted behavior or instability.
I am working on a prototype to enable simple validation of all API requests data using json schemas and the python package jsonschema<https://pypi.python.org/pypi/jsonschema>.
As I am new in the openstack community and also because my work uses the json schema specification which is still a draft with a new package dependency, I was looking for some feedback about this idea before going on and filling a blueprint.
Regards,
--
Bruno Semperlotti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130602/b2d84ab6/attachment.html>


More information about the OpenStack-dev mailing list

AltStyle によって変換されたページ (->オリジナル) /