{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/address.schema.json",
  "title": "Address",
  "description": "An address schema",
  "type": "object",
  "properties": {
    "street": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "postalCode": {
      "type": "string"
    },
    "country": {
      "type": "string",
      "default": "US"
    }
  },
  "required": ["street", "city", "postalCode"]
}

