

@classmethod
def _validate(cls, message):
    'Confirm the validitiy of a given dict as an OpenXC message.\n\n        Returns:\n            ``True`` if the message contains at least a ``name`` and ``value``.\n        '
    valid = False
    if ((('name' in message) and ('value' in message)) or (('id' in message) and ('data' in message))):
        valid = True
    return valid

dataset/ETHPy150Open openxc/openxc-python/openxc/formats/json.py JsonFormatter._validate/original