nexus-5-auth/nexus-5-auth-kratos/config/identity.schema.json
2026-01-26 11:15:52 -05:00

58 lines
1.4 KiB
JSON

{
"$id": "https://schemas.ory.sh/presets/kratos/identity.email.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": "E-Mail",
"minLength": 3,
"maxLength": 320,
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
},
"name": {
"type": "object",
"properties": {
"first": {
"type": "string",
"title": "First Name",
"minLength": 1,
"maxLength": 100
},
"last": {
"type": "string",
"title": "Last Name",
"minLength": 1,
"maxLength": 100
}
}
}
},
"required": ["email"],
"additionalProperties": false
}
}
}