<div dir="ltr"><div><div><div><div>Hi All,<br></div>In short terms, I am wondering why we are validating responses from server when we are doing<br></div>image-show, image-list, member-list, metadef-namespace-show and other read-only requests.<br></div><br></div>AFAIK, we are building warlock models when receiving responses from server (see [0]). Each model requires schema to be fetched from glance server. It means that each time we are doing image-show, image-list, image-create, member-list and others we are requesting schema from the server. AFAIU, we are using models to dynamically validate that object is in accordance with schema but is it the case when glance receives responses from the server?<br><div><div><div><div><div><div><br></div><div>Could somebody please explain me the reasoning of this implementation? Am I missed some usage cases when validation is required for server responses?<br></div><div><br></div><div>I also noticed that we already faced some issues with such implementation that leads to "mocking" validation([1][2]).<br></div><div><br><div><div><br>[0]: <a href="https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L185" target="_blank">https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L185</a><br>[1]: <a href="https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L47">https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L47</a><br>[2]: <a href="https://bugs.launchpad.net/python-glanceclient/+bug/1501046">https://bugs.launchpad.net/python-glanceclient/+bug/1501046</a><br><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr">Best regards,<div>Kairat Kushaev</div></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>