{ "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/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": "E-Mail", "minLength": 3, "ory.sh/kratos": { "credentials": { "password": { "identifier": true }, "webauthn": { "identifier": true }, "code": { "identifier": true, "via": "email" } } } }, "website": { "title": "Website", "type": "string", "format": "uri", "minLength": 10 }, "consent": { "title": "Consent", "type": "boolean" }, "newsletter": { "title": "Newsletter", "type": "boolean" }, "nested": { "type": "object", "properties": { "b": { "title": " optional B", "type": "string" } } }, "requirednested": { "title": "required nested", "type": "object", "properties": { "a": { "title": "Required A", "const": true }, "b": { "title": "Required optional B", "type": "string" } }, "required": [ "a" ] } }, "required": [ "email", "website", "requirednested", "consent" ], "additionalProperties": false } } }