<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 19, 2015 at 3:54 PM, Kevin L. Mitchell <span dir="ltr"><<a href="mailto:kevin.mitchell@rackspace.com" target="_blank">kevin.mitchell@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When we look at consistency, we look at everything else in OpenStack.<br>
>From the standpoint of the nova API (with which I am the most familiar),<br>
I am not aware of any property that is ever omitted from any payload<br>
without versioning coming in to the picture, even if its value is null.<br>
Thus, I would argue that we should encourage the first situation, where<br>
all properties are included, even if their value is null.<br></blockquote><div><br></div><div>Independent of actual implementations in OpenStack, I prefer always including null/empty properties here because it is slightly more self-documenting.  Having spent the morning chasing down attributes for an API to be named at a later date by looking at server code, we do not help ourselves or the users of our APIs by omitting this sort of thing.</div><div><br></div><div>dt</div><div> </div></div>-- <br><div class="gmail_signature"><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br></div>
</div></div>