Skip to content

validation error #19

Closed
Closed
@Khalid-noor

Description

@Khalid-noor

Hello

I think I found a bug with required_without and required_without_all when I used it with parameter type.

example:

def rules(self):
        return {
            'id': ['required_without:name', integer],
            'name': ['required_without:id', 'string']
        }

and When the request json only has ID

{
   "id": 123
}

the error response is:

{
  "errors": {
    "user_id": [
      "The name must be an string."
    ]
  },
  "message": "Validation error",
  "success": false
}

Can You please check this issue?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions