Files
plainpages/ory/kratos/identity.schema.json

35 lines
951 B
JSON

{
"$id": "https://plainpages/kratos/identity.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "Email",
"minLength": 3,
"maxLength": 320,
"ory.sh/kratos": {
"credentials": { "password": { "identifier": true } },
"verification": { "via": "email" },
"recovery": { "via": "email" }
}
},
"name": {
"type": "object",
"properties": {
"first": { "type": "string", "title": "First name", "maxLength": 256 },
"last": { "type": "string", "title": "Last name", "maxLength": 256 }
}
}
},
"required": ["email"],
"additionalProperties": false
}
}
}