{ "$id": "https://schemas.ory.sh/kratos/selfservice/strategy/password/login.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "csrf_token": { "type": "string" }, "password": { "type": "string", "minLength": 1 }, "identifier": { "type": "string", "minLength": 1 }, "method": { "type": "string" }, "transient_payload": { "type": "object", "additionalProperties": true } }, "allOf": [ { "if": { "properties": { "method": { "const": "password" } }, "required": [ "method" ] }, "then": { "required": [ "password" ] } }, { "if": { "properties": { "password_identifier": { "type": "string", "minLength": 1 } }, "required": [ "password_identifier" ] }, "then": { "required": [ "password_identifier" ] }, "else": { "required": [ "identifier" ] } } ] }