added few validations

This commit is contained in:
iLLiCiTiT 2021-05-12 11:32:12 +02:00
parent 9a3a8f0ac3
commit a34167c6cb

View file

@ -244,6 +244,10 @@ class DictMutableKeysEntity(EndpointEntity):
if used_temp_label:
self.label = None
if self.value_is_env_group and self.store_as_list:
reason = "Item can't store environments metadata to list output."
raise EntitySchemaError(self, reason)
if not self.schema_data.get("object_type"):
reason = (
"Modifiable dictionary must have specified `object_type`."