[openstack-dev] Strict validation and Compatibility (Re: [Nova] Blueprint: nova-api-validation-fw)

Robert Collins 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:
> Hi,
> Now we are implementing api validation framework for Oslo.
> https://review.openstack.org/#/c/25884/
> Through this process, we face difficult issue between strict validation and
> compatibility.
> 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
> "0123".
> 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>
Distinguished Technologist
HP Cloud Services

More information about the OpenStack-dev mailing list