feat: support automatic casting of the string representation of a boolean value #1328
Labels
status: duplicate
Issue is being tracked already in another issue.
type: feature
Issues related to new features.
Description
If we try to convert a value that has
typeof string
, then in some cases it returns the wrong value. e.gvalue: 'true'
will return true, while on the other handvalue: 'false'
will also return the true.Minimal code-snippet showcasing the problem
Consideration: A network access request.
Expected behavior
RoleDTO
with theid:1
should havecanAccess: true
andRoleDTO
with theid:2
should havecanAccess: false
Actual behavior
RoleDTO
withid
1, and 2 havecanAccess: true
This is a common JS Boolean conversion issue, I will be submitting a PR for this.
The text was updated successfully, but these errors were encountered: