json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Intercepting data before validation #634

Open nicklasb opened 8 years ago

nicklasb commented 8 years ago

I am trying to edit a part of the model directly, the JSON itself. My problem is that this means that a part of the schema expects an object. I have found no nice way of intercepting the data before it reaches validation, adding a $validator lets me check that it is valid JSON, is would be great if I there could also affect the actual data in some way and convert the text to the object the validator expects.. Preferably without having to write my own add-on..

Anthropic commented 7 years ago

@nicklasb any solution suggestions on this? Calculate add-on I added would cover this to a point I suspect.