> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:128'], 'type' => ['required', 'string', Rule::in(IndexChannelRequest::TYPES)], 'lang' => ['required', 'string', 'max:16'], 'summary' => ['sometimes', 'nullable', 'string', 'max:1024'], 'status' => ['sometimes', 'integer', Rule::in([Channel::STATUS_PRIVATE, Channel::STATUS_UNLISTED, Channel::STATUS_PUBLIC])], 'source_type' => ['sometimes', 'string', Rule::in(['original', 'reprint', 'ai'])], 'source_id' => ['sometimes', 'nullable', 'string', 'max:36'], ]; } }