{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Customer Profile",
  "description": "A customer profile contains information about an individual customer",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "minLength": 1
    },
    "lastName": {
      "type": "string",
      "minLength": 1
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        }
      },
      "required": ["street", "city", "state", "zip"]
    },
    "phoneNumber": {
      "type": "string"
    },
    "email": {
      "type": "string"
    }
  },
  "required": ["firstName", "lastName", "address", "phoneNumber", "email"]
}
Genera uno schema JSON valido per un profilo cliente.