It would be weird to say, OK you can set one provider but no resources. And if you don't want allocations for a given consumer on any provider, then DELETE /allocations/{consumer_id} is what you need.
--
Also, I think we could use minProperties: 1 to fix this for the 'resources' key:
I think 400. Since we said you have to provide at least one resource provider:
https:/ /review. openstack. org/#/c/ 490195/
It would be weird to say, OK you can set one provider but no resources. And if you don't want allocations for a given consumer on any provider, then DELETE /allocations/ {consumer_ id} is what you need.
--
Also, I think we could use minProperties: 1 to fix this for the 'resources' key:
http:// json-schema. org/latest/ json-schema- validation. html#rfc. section. 6.16