@classmethod
    def _validate(cls, message):
        """Confirm the validitiy of a given dict as an OpenXC message.

        Returns:
            ``True`` if the message contains at least a ``name`` and ``value``.
        """
        valid = False
        if(('name' in message and 'value' in message) or
                ('id' in message or 'data' in message)):
            valid = True
        return valid
dataset/ETHPy150Open openxc/openxc-python/openxc/formats/json.py/JsonFormatter._validate/operator `and` -> `or`