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

Conditional constraints #501

Closed rsantos200771 closed 8 years ago

rsantos200771 commented 9 years ago

Hi,

I want to perform conditional constraints in a schema and for that I need to have access to the all schema and model. What's the best way to access this?

Thanks

nicklasb commented 8 years ago

The schema and model you provide yourself to ASF. Not sure what you mean here.

Anthropic commented 8 years ago

There are some options like evalExpr(), they seem to have been removed from the documentation so I am checking on why, but for now you can try them and see if they help. https://github.com/json-schema-form/angular-schema-form/blob/4c25e86a96e8ed476c12c11e44bd8db36eeefe27/docs/extending.md

Please re-open if you do not feel the question has been answered sufficiently.