public function addValidation(string $field, string $message)
    {
        $args = func_get_args();

        return $this->set('json', 'validation', ...$args);
    }
public function addValidation(string $field, string $message)
    {
        $args = func_get_args();

        return $this->set('json', 'validation', ...$args);
    }
public function addValidation ( string $ field , string $ message ) { $ args = func_get_args ( ) ; return $ this -> set ( 'json' , 'validation' , ... $ args ) ; }
Adds a JSON validation message or sets all the validations

@param *string $field
@param *string $message

@return RestTrait
Adds a JSON validation message or sets all the validations