mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Mark a bunch of SCIM config as nullable
This commit is contained in:
parent
91cf683f3d
commit
cfe9c687f9
|
@ -35,27 +35,27 @@ class SnipeSCIMConfig extends \ArieTimmerman\Laravel\SCIMServer\SCIMConfig
|
||||||
'validations' => [
|
'validations' => [
|
||||||
$user_prefix . 'userName' => 'required',
|
$user_prefix . 'userName' => 'required',
|
||||||
$user_prefix . 'name.givenName' => 'required',
|
$user_prefix . 'name.givenName' => 'required',
|
||||||
$user_prefix . 'name.familyName' => 'string',
|
$user_prefix . 'name.familyName' => 'nullable|string',
|
||||||
$user_prefix . 'externalId' => 'string|nullable',
|
$user_prefix . 'externalId' => 'nullable|string',
|
||||||
$user_prefix . 'emails' => 'nullable|array',
|
$user_prefix . 'emails' => 'nullable|array',
|
||||||
$user_prefix . 'emails.*.value' => 'email',
|
$user_prefix . 'emails.*.value' => 'nullable|email',
|
||||||
$user_prefix . 'active' => 'boolean',
|
$user_prefix . 'active' => 'boolean',
|
||||||
$user_prefix . 'phoneNumbers' => 'nullable|array',
|
$user_prefix . 'phoneNumbers' => 'nullable|array',
|
||||||
$user_prefix . 'phoneNumbers.*.value' => 'string',
|
$user_prefix . 'phoneNumbers.*.value' => 'nullable|string',
|
||||||
$user_prefix . 'addresses' => 'nullable|array',
|
$user_prefix . 'addresses' => 'nullable|array',
|
||||||
$user_prefix . 'addresses.*.streetAddress' => 'string',
|
$user_prefix . 'addresses.*.streetAddress' => 'nullable|string',
|
||||||
$user_prefix . 'addresses.*.locality' => 'string',
|
$user_prefix . 'addresses.*.locality' => 'nullable|string',
|
||||||
$user_prefix . 'addresses.*.region' => 'nullable|string',
|
$user_prefix . 'addresses.*.region' => 'nullable|string',
|
||||||
$user_prefix . 'addresses.*.postalCode' => 'nullable|string',
|
$user_prefix . 'addresses.*.postalCode' => 'nullable|string',
|
||||||
$user_prefix . 'addresses.*.country' => 'string',
|
$user_prefix . 'addresses.*.country' => 'nullable|string',
|
||||||
$user_prefix . 'title' => 'string',
|
$user_prefix . 'title' => 'nullable|string',
|
||||||
$user_prefix . 'preferredLanguage' => 'string',
|
$user_prefix . 'preferredLanguage' => 'nullable|string',
|
||||||
|
|
||||||
// Enterprise validations:
|
// Enterprise validations:
|
||||||
$enterprise_prefix . 'employeeNumber' => 'string',
|
$enterprise_prefix . 'employeeNumber' => 'nullable|string',
|
||||||
$enterprise_prefix . 'department' => 'string',
|
$enterprise_prefix . 'department' => 'nullable|string',
|
||||||
$enterprise_prefix . 'manager' => 'nullable',
|
$enterprise_prefix . 'manager' => 'nullable',
|
||||||
$enterprise_prefix . 'manager.value' => 'string'
|
$enterprise_prefix . 'manager.value' => 'nullable|string'
|
||||||
],
|
],
|
||||||
|
|
||||||
'singular' => 'User',
|
'singular' => 'User',
|
||||||
|
|
Loading…
Reference in a new issue