sticky-island-65815
08/31/2024, 4:44 PMchilly-king-10285
08/31/2024, 4:44 PMchilly-king-10285
08/31/2024, 4:45 PMjson { "$id": "<https://schemas.ory.sh/presets/kratos/identity.basic.schema.json>", "title": "Person", "type": "object", "properties": { "traits": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "title": "Email address", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true }, "webauthn": { "identifier": true }, "totp": { "account_name": true } }, "recovery": { "via": "email" }, "verification": { "via": "email" } }, "maxLength": 320 }, "name": { "type": "object", "required": [ "last" ], "properties": { "first": { "type": "string", "title": "First name", "maxLength": 256 }, "last": { "type": "string", "title": "Last name", "maxLength": 256 } } } }, "required": [ "email" ], "additionalProperties": false } } } In this example, the email address and last name are required fields. For nested objects such as name, the required property is added inside of the object. For more information, you can refer to the [Ory Kratos Documentation](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#mandatory-fields-for-registration).sticky-island-65815
08/31/2024, 4:46 PMchilly-king-10285
08/31/2024, 4:46 PMchilly-king-10285
08/31/2024, 4:46 PM