30 lines
801 B
PHP
30 lines
801 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Deck\Validators;
|
|
|
|
class BoardServiceValidator extends BaseValidator {
|
|
public function rules() {
|
|
return [
|
|
'id' => ['numeric'],
|
|
'boardId' => ['numeric'],
|
|
'type' => ['numeric'],
|
|
'mapper' => ['not_empty', 'not_null', 'not_false'],
|
|
'title' => ['not_empty', 'not_null', 'not_false', 'max:100'],
|
|
'userId' => ['not_empty', 'not_null', 'not_false', 'max:64'],
|
|
'color' => ['not_empty', 'not_null', 'not_false', 'max:6'],
|
|
'participant' => ['not_empty', 'not_null', 'not_false', 'max:64'],
|
|
'edit' => ['not_null'],
|
|
'share' => ['not_null'],
|
|
'manage' => ['not_null'],
|
|
'archived' => ['bool']
|
|
];
|
|
}
|
|
}
|