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

How to get schema-validate to work with fields inside an object addon? #802

Closed Lorless closed 7 years ago

Lorless commented 7 years ago

I have a scenario where I need an add on that produces some like

{topKeyName: { value: 'something', unit: 1 }}

But I want to have validation on each of those fields. Why can't I do something like

schema-validate="form.items[1]"

for each field in my add on? Am I going about this the wrong way? I dont want to use the simpleTransclusion builder because it gives me no flexibility or control over the markup.

Anthropic commented 7 years ago

@Lorless thank you for self closing, appreciate your effort :)