Skip to content

[BUG] UI Not showing All Request Validation Rules #413

@agribazaar-api-docs

Description

@agribazaar-api-docs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions