{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringover/json-schema/ringover-new-contact-schema.json",
  "title": "new_contact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringover-contacts-api-openapi.yml#/components/schemas/new_contact",
  "type": "object",
  "properties": {
    "firstname": {
      "type": "string"
    },
    "lastname": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "is_shared": {
      "type": "boolean"
    },
    "numbers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/new_number_contact"
      }
    }
  },
  "$defs": {
    "new_number_contact": {
      "type": "object",
      "properties": {
        "number": {
          "type": "integer",
          "format": "int64",
          "description": "Phone number (E.164 format)"
        },
        "type": {
          "type": "string",
          "enum": [
            "home",
            "office",
            "mobile",
            "fax",
            "other"
          ]
        }
      }
    }
  }
}