WLOYL-2794 Schema 7
🧩 Syntax:
{
"type": "object",
"title": "Example form for testing",
"$schema": "http://json-schema.org/draft-06/schema#",
"required": ["givenName", "familyName", "email", "birthdate"],
"properties": {
"email": {
"type": "string",
"title": "Email Address",
"pattern": ".+@.+"
},
"gender": {
"enum": ["MALE", "FEMALE", "UNKNOWN", "OTHER"],
"title": "Gender"
},
"country": {
"type": "string",
"title": "Country"
},
"postcode": {
"type": "string",
"title": "Postcode"
},
"birthdate": {
"type": "string",
"title": "Birth Date",
"format": "date"
},
"givenName": {
"type": "string",
"title": "Given name"
},
"attributes": {
"type": "object",
"title": "",
"properties": {
"size": {
"enum": ["test", "another"],
"type": "string"
}
}
},
"familyName": {
"type": "string",
"title": "Family name"
}
},
"errorMessage": {
"_": "Default error message",
"properties": {
"email": "Must be a real email."
}
}
}