def set_type_by_schema(self, schema_obj, schema_type):
schema_id = self._get_object_schema_id(schema_obj, schema_type)<EOL>if not self.storage.contains(schema_id):<EOL><INDENT>schema = self.storage.create_schema(<EOL>schema_obj, self.name, schema_type, root=self.root)<EOL>assert schema.schema_id == schema_id<EOL><DEDENT>self._type = schema_id<EOL>
Set property type by schema object
Schema will create, if it doesn't exists in collection

:param dict schema_obj: raw schema object
:param str schema_type: