public function rules(): array 	{ 		return [ 			'name' => ['required', 'string', 'max:50'], 			'mode' => ['required', 'integer', Rule::in([Role::LIST_MODE_WHITE, Role::LIST_MODE_BLACK])], 			'protected' => ['boolean'], 			'api_rate_limit' => ['required', 'integer', 'min:1'], 			'api_rate_limit_backoff_minutes' => ['required', 'integer', 'min:1'], 			'disallowed_methods' => ['array'], 			'disallowed_methods.*' => ['required', 'string', Rule::in(Role::getAllowedMethods())], 			'routes' => ['array'], 			'routes.*' => ['required', 'string', 'max:50'], 		]; 	}