{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "ExtractPerson",
  "properties": {
    "name": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "phoneNumbers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["home", "work", "mobile"]
          },
          "number": {
            "type": "string"
          }
        },
        "required": ["type", "number"]
      }
    }
  },
  "required": ["name", "age", "phoneNumbers"]
}
