{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://samplefiles.com/schemas/customer.json",
  "title": "Customer",
  "type": "object",
  "required": [
    "id",
    "first_name",
    "last_name",
    "email"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "first_name": {
      "type": "string",
      "minLength": 1
    },
    "last_name": {
      "type": "string",
      "minLength": 1
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone": {
      "type": "string",
      "pattern": "^\\+1-\\d{3}-555-01\\d{2}$"
    },
    "signup_date": {
      "type": "string",
      "format": "date"
    },
    "balance": {
      "type": "number"
    },
    "active": {
      "type": "boolean",
      "default": true
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    }
  },
  "additionalProperties": false
}
