Skip to content

Uuid validation rule no longer accepts UUID version 6-7 #48375

Closed
@nizacegodk

Description

@nizacegodk

Laravel Version

10.23.0

PHP Version

8.2.4

Database Driver & Version

No response

Description

Since the merge of #48321 the uuid validation rule introduced a breaking change by no longer accepting other versions of UUID than 1-5.

We extensively use version 6 and 7 in our Laravel projects due to some of the benefits these versions supply.

While I do understand the sentiment behind the PR, I think this should be included as either a major release or its own new RfcUuid rule instead to avoid introducing breaking changes in minor releases.

Our systems would break down in its entirety if not for sufficient pipeline testing before releases.
So I suggest reverting the PR and either introducing the change in a major release or as its own seperate rule.

Steps To Reproduce

Create a validator with the uuid rule
Supply the validator with an UUIDv6 created with \Ramsey\Uuid\Uuid::uuid6()->toString()

Notice the failure in Laravel version 10.23.0 and not in 10.22.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions