Closed donalmurtagh closed 7 years ago
Try sfValidator(form, viewValue)
the sfValidator is now an alias for JSONSchemaFormCore.validate
.factory('sfSelect', () => JSONSchemaFormCore.select)
.factory('sfValidator', () => JSONSchemaFormCore.validate)
Please re-open if you do not feel the question has been answered sufficiently.
Thanks for your reply, this seems to have fixed the problem. If you're maintaining a 1.0 upgrade guide, this ought to be included.
Yes, I admit I had overlooked the idea of people using the factories outside the framework but obviously it happens especially in add-ons, I changed it as it seemed odd to have a single function added to an object instead of just passing the function. I should have logged it, I'm glad you raised it, got me thinking about what else may have seemed minor but actually are not.
I recently upgraded from 0.8.13 to the latest 1.0.0-alpha.5. In my app, I programmatically validate fields by injecting
sfValidator
and callingSince the upgrade, this causes the following error:
Has this function been renamed, or is there a replacement available?
@json-schema-form/angular-schema-form-lead