You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated docs have correctly seen it needs boolean. At the sample request I can choose True or False.
Current Behavior
Validator says:
422 Unprocessable Entity
{
"message":"The all field must be true orfalse.","errors": {"all": [
"The all field must be true or false."
]
}
}
Stoplight Elements sends "true" and "false" strings as booleans, and Laravel API throws an error.
Expected Behavior
It should pass validation rules
Possible Solution(s)
If a boolean is required, send a boolean
The text was updated successfully, but these errors were encountered:
LvckyAPI
changed the title
Boolean values are not sent as boolean
Boolean values are not sent as boolean while send resquest
Nov 11, 2024
LvckyAPI
changed the title
Boolean values are not sent as boolean while send resquest
Boolean values are not sent as boolean while send request
Nov 11, 2024
Context
Related to: dedoc/scramble#615
In Laravel I try to validate boolean:
The generated docs have correctly seen it needs boolean. At the sample request I can choose
True
orFalse
.Current Behavior
Validator says:
Stoplight Elements sends "true" and "false" strings as booleans, and Laravel API throws an error.
Expected Behavior
It should pass validation rules
Possible Solution(s)
If a boolean is required, send a boolean
The text was updated successfully, but these errors were encountered: