Skip to content

Commit 90da079

Browse files
committed
Enforce max length of 1000 for subject field in NotesProcedure.
1 parent fb60a9d commit 90da079

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Http/Procedures/NotesProcedure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NotesProcedure extends Procedure
2323
#[RpcMethod(
2424
description: 'Create a note.',
2525
params: [
26-
'subject' => 'An optional subject of the note. (string|nullable|min:1)',
26+
'subject' => 'An optional subject of the note. (string|nullable|min:1|max:1000)',
2727
'note' => 'The note content. (string|required|min:1|max:1000)',
2828
'scopes' => "An optional set of scopes associated with the note such as 'CyberBuddy', 'Orchestrator' or 'SOC Operator' (array|nullable|min:0|max:3)",
2929
],
@@ -39,7 +39,7 @@ class NotesProcedure extends Procedure
3939
public function create(JsonRpcRequest $request): array
4040
{
4141
$params = $request->validate([
42-
'subject' => 'string|nullable|min:1|max:',
42+
'subject' => 'string|nullable|min:1|max:1000',
4343
'note' => 'string|required|min:1|max:1000',
4444
'scopes' => 'array|nullable|min:0|max:3',
4545
'scopes.*' => 'string|in:CyberBuddy,Orchestrator,SOC Operator',

0 commit comments

Comments
 (0)