{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-mobile-number-request-schema.json",
  "title": "MobileNumberRequest",
  "description": "POST body for mobile number numerology: the number stays out of the URL.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asterwise-com-numerology-api-openapi.yml#/components/schemas/MobileNumberRequest",
  "properties": {
    "number": {
      "type": "string",
      "maxLength": 20,
      "minLength": 5,
      "title": "Number",
      "description": "Mobile number, digits only or with country code. The country code is not counted: the national number of a valid number is summed (libphonenumber). With `country`, the number is read as dialled in that country first, including its international prefix (Australia '0011 …', US '011 …'). A '+' number libphonenumber does not accept is summed with every digit after the '+'; a '00' number counts as international only if the rest is a valid number, otherwise it is summed as written. With no prefix and no `country`, the only code removed is India's (a 12-digit number starting 91), and every other number is summed as written, because the country cannot be known (China '180…' would look like US +1)."
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2,
          "minLength": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Country",
      "description": "Optional ISO 3166 alpha-2 country the number is dialled in (e.g. 'IN', 'US', 'AU'). The number is parsed in that country first, so a country code or trunk 0 written in front is dropped and that country's international prefix is understood ('14155552671' with 'US' → 4155552671; '0011 61 412 345 678' with 'AU' → 412345678). An unknown code is a 422 `validation_error` with issue `unknown_country` on field `country`."
    }
  },
  "type": "object",
  "required": [
    "number"
  ]
}