{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "9in adapter /authenticate request",
  "description": "What 9in POSTs to <your base URL>/authenticate.",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "email",
            "username",
            "phone"
          ]
        },
        "value": {
          "type": "string",
          "minLength": 1,
          "maxLength": 320
        }
      },
      "required": [
        "type",
        "value"
      ],
      "additionalProperties": false
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024
    }
  },
  "required": [
    "identifier",
    "password"
  ],
  "additionalProperties": false
}
