

def validate(self, value):
    if (not isinstance(value, dict)):
        raise ValidationError({
            'properties': ['This field must be a JSON object.'],
        })
    if ('__stackdio__' in value):
        raise ValidationError({
            'properties': ['The `__stackdio__` key is reserved for system use.'],
        })

dataset/ETHPy150Open stackdio/stackdio/stackdio/core/validators.py PropertiesValidator.validate/original