dschnelldavis/angular2-json-schema-form

Restrict no of characters

subratastack opened this issue · 1 comments

How can I restrict no of characters in an text field? Can we set maxLength value

You can do exactly that in the schema... Take a look at the "Deep Recursive References" example.

"string": {
        "type": "string",
        "minLength": 0,
        "maxLength": 10
}