Skip to content

Instantly share code, notes, and snippets.

@adrianlemess
Last active May 21, 2020 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianlemess/d79348769cf5f3236328300f390ee6cf to your computer and use it in GitHub Desktop.
Save adrianlemess/d79348769cf5f3236328300f390ee6cf to your computer and use it in GitHub Desktop.
Forms Schematic
{
"type": "object",
"title": "Personal Informations",
"properties": {
"name": {
"title": "Name",
"type": "string",
"maxLength": 80
},
"password": {
"title": "Password",
"type": "string",
"inputType": "password",
"minLength": 6
},
"email": {
"title": "Email",
"type": "string",
"pattern": "^\\S+@\\S+$"
},
"age": {
"title": "Age",
"type": "number",
"min": 0,
"max": 120
},
"nationality": {
"title": "Nationality",
"type": "string"
},
"cpf": {
"title": "CPF",
"type": "string",
"mask": "000.000.000-00"
},
"phoneNumber": {
"title": "Phone Number",
"type": "string",
"mask": "(00) 00000-0000",
"inputType": "tel"
}
},
"required": ["name", "cpf", "password", "email", "age"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment