guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema
MIT License
485 stars 173 forks source link

default schema validators #68

Open hugsbrugs opened 7 years ago

hugsbrugs commented 7 years ago

I'm expecting following schema

"properties": { "name": { "type": "string", "placeholder": "Name", "minLength": 10, "maxLength": 100,

to generate angular min/max length validators !Is this functionnality implemented ? If yes, does I have correct syntax ?

In the readme passwordCheck validator example , controls variable is not defined, could you please provide expanations on where it comes from ?

By the way, i've been able to extend widgets to fit W3.CSS framework. Do you plan some modularity of this plugin to be framework agnostic or do you plan keep bootstrap as reference ?

thanks for your work !

daniele-pecora commented 6 years ago

Angular2-schema-form uses Z-Schema JSON validator. This is very standard functionallity and is supported right away.

You may also use your own JSON validator.

@ebrehault would you mind to close this?