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
builds the validation rules indeed, but they are not applied when used with validate binding behavior. I have debugged it down to this line which compares '2' !== 2 and skips the validation.
The 4rd try (ugly hack aka workaround)
This works, but is far from pretty.
Adding the toString() there causes the validation to be applied on given field as expected. However, the error is not being rendered in the GUI (I am using "standard" BootstrapValidationRenderer from examples). It works, when using my hack so I guess there is another strict comparison somewhere.
* chore(vscode): disable formatOnSave and set tslint to local path
* fix(property-access): make number and string property keys work the same way
* fix(validation-messages): assign the parser in the constructor
* fix(property-accessor-parser): handle numeric property keys
fixes#474
I'm submitting a feature request or bug report, really don't know
1.1.2
I want to validate the following object:
The identifiers of properties are dynamic based on my data model.
The 1st try
results in the following error
The 2nd try
OT: In fact, I have noticed that
.ensure(obj => obj.someProp)
works but.ensure(obj => obj['someProp'])
does not. See this gist for reference.The 3rd try
builds the validation rules indeed, but they are not applied when used with
validate
binding behavior. I have debugged it down to this line which compares'2' !== 2
and skips the validation.The 4rd try (ugly hack aka workaround)
This works, but is far from pretty.
The text was updated successfully, but these errors were encountered: