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:

def set_type_by_schema(self, schema_obj, schema_type):
        """
        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:
        """
        schema_id = self._get_object_schema_id(schema_obj, schema_type)

        if not self.storage.contains(schema_id):
            schema = self.storage.create_schema(
                schema_obj, self.name, schema_type, root=self.root)
            assert schema.schema_id == schema_id
        self._type = schema_id