<div dir="ltr">Yes, very interesting.<div class="gmail_extra">Perhaps it could be mutualized between all OpenStack APIs. Why not integrates it in the OpenStack common library (Oslo) ?<br><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 1:24 PM, Sean Dague <span dir="ltr"><<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/26/2013 06:09 AM, Ken'ichi Ohmichi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
This is RFC of blueprint nova-api-validation-fw.<br>
   Blueprint: <a href="https://blueprints.launchpad.net/nova/+spec/nova-api-validation-fw" target="_blank">https://blueprints.launchpad.<u></u>net/nova/+spec/nova-api-<u></u>validation-fw</a><br>
   Details  : <a href="https://wiki.openstack.org/wiki/NovaApiValidationFramework" target="_blank">https://wiki.openstack.org/<u></u>wiki/<u></u>NovaApiValidationFramework</a><br>
<br>
Nova has many RESTful APIs, and not all API parameters are completely<br>
validated. We would like to propose an API validation framework to<br>
implement comprehensive validation.<br>
The benefits of this framework will be the followings:<br>
  * Validate every API parameters.<br>
  * Unify both message format and HTTP code of error response, if<br>
    the same cause.<br>
    ex) ".. is too short.", ".. is too long.", ".. is not integer."<br>
  * Clarify the API parameter definitions.<br>
  * Clean up codes by merging error handling methods.<br>
<br>
Using the JSON Schema library, we have created a prototype and examined<br>
this API validation framework. The following URL is the prototype code.<br>
   <a href="https://review.openstack.org/25358" target="_blank">https://review.openstack.org/<u></u>25358</a><br>
<br>
We'd like to discuss the framework design, so any comments are welcome.<br>
</blockquote>
<br></div>
This looks like a nice start, and it would be really good to consolidate the validation to a central point. Have you submitted a design summit session on this as well?<span class="HOEnZb"><font color="#888888"><br>
<br>
        -Sean<br>
<br>
-- <br>
Sean Dague<br>
<a href="http://dague.net" target="_blank">http://dague.net</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>