[openstack-dev] Strict validation and Compatibility (Re: [Nova] Blueprint: nova-api-validation-fw)
robertc at robertcollins.net
Tue Apr 9 09:19:56 UTC 2013
On 7 April 2013 18:24, Ken'ichi Ohmichi <ken1ohmichi at gmail.com> wrote:
> Now we are implementing api validation framework for Oslo.
> Through this process, we face difficult issue between strict validation and
> Now Nova distinguishes string integer(ex. "10") as integer by int().
> If passing parameter "0123", current Nova handles it as 123 because of
> casting to integer.
> From the point view of strict validation, it is better to disallow integer
> However, from one of compatibility, it may be better to allow the value.
API compatibility is pretty important. I can see your point about
strict behaviour, but please only do this for new API's.
Robert Collins <rbtcollins at hp.com>
HP Cloud Services
More information about the OpenStack-dev