Skip to content

Commit

Permalink
Specify allowed array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 17, 2023
1 parent d435d72 commit 94c1d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/publications/src/Models/PublicationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function validateSchemaFile(): void
'sortField' => 'nullable|string',
'sortAscending' => 'nullable|boolean',
'pageSize' => 'nullable|integer',
'fields' => 'nullable|array',
'fields' => 'nullable|array:type,name,rules,tagGroup',
'directory' => 'nullable|prohibited',
])->validate();

Expand Down

0 comments on commit 94c1d6d

Please sign in to comment.