[openstack-dev] [Nova] Blueprint: nova-api-validation-fw

Édouard Thuleau edouard.thuleau at gmail.com
Tue Mar 26 13:01:16 UTC 2013


Yes, very interesting.
Perhaps it could be mutualized between all OpenStack APIs. Why not
integrates it in the OpenStack common library (Oslo) ?

On Tue, Mar 26, 2013 at 1:24 PM, Sean Dague <sean at dague.net> wrote:

> On 03/26/2013 06:09 AM, Ken'ichi Ohmichi wrote:
>
>>
>> Hi,
>>
>> This is RFC of blueprint nova-api-validation-fw.
>>    Blueprint: https://blueprints.launchpad.**net/nova/+spec/nova-api-**
>> validation-fw<https://blueprints.launchpad.net/nova/+spec/nova-api-validation-fw>
>>    Details  : https://wiki.openstack.org/**wiki/**
>> NovaApiValidationFramework<https://wiki.openstack.org/wiki/NovaApiValidationFramework>
>>
>> Nova has many RESTful APIs, and not all API parameters are completely
>> validated. We would like to propose an API validation framework to
>> implement comprehensive validation.
>> The benefits of this framework will be the followings:
>>   * Validate every API parameters.
>>   * Unify both message format and HTTP code of error response, if
>>     the same cause.
>>     ex) ".. is too short.", ".. is too long.", ".. is not integer."
>>   * Clarify the API parameter definitions.
>>   * Clean up codes by merging error handling methods.
>>
>> Using the JSON Schema library, we have created a prototype and examined
>> this API validation framework. The following URL is the prototype code.
>>    https://review.openstack.org/**25358<https://review.openstack.org/25358>
>>
>> We'd like to discuss the framework design, so any comments are welcome.
>>
>
> 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?
>
>         -Sean
>
> --
> Sean Dague
> http://dague.net
>
>
> ______________________________**_________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.**org <OpenStack-dev at lists.openstack.org>
> http://lists.openstack.org/**cgi-bin/mailman/listinfo/**openstack-dev<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130326/95789d7d/attachment.html>


More information about the OpenStack-dev mailing list