laravel-request-docs icon indicating copy to clipboard operation
laravel-request-docs copied to clipboard

[BUG] UI Not showing All Request Validation Rules

Open agribazaar-api-docs opened this issue 1 month ago • 0 comments

Missing Validation Rule If validation rules are defined in an array and are not inline, they are not displayed in the user interface.

To Reproduce Steps to reproduce the behavior:

  • Create a rule for example
public function rules(): array
    {
        return [
            'reference' => ['required', 'string', 'max:32'],
            'virtual_account_number_from' => [
                'required',
                'string',
                'size:16'
            ],
            'virtual_account_number_to' => [
                'required',
                'string',
                'size:16'
            ],
            'amount' => ['required', 'numeric'],
        ];
    }
  • The UI shows required , numeric rules for amount but not for other two

Expected behavior The rules shouldn't be affected by multiple lines; all validation rules should be displayed correctly.

Screenshots

Try Request UI Validation Rule

Desktop

  • OS: Ubuntu 24
  • Browser: Chrome
  • Version 142.0.7444.162

Versions

  • Laravel Version: 12.38.1
  • PHP Version: 8.4.14
  • Laravel Request Docs Version: 2.43

agribazaar-api-docs avatar Nov 19 '25 05:11 agribazaar-api-docs