{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/ContactPoint/v1/schema.json",
  "title": "ContactPoint",
  "description": "Objects Grid ContactPoint Object. Modeled in compliance with https://schema.org/ContactPoint.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "type": ["string", "null"],
      "enum": ["ContactPoint"]
    },
    "telephone": {
      "type": ["string", "null"],
      "minLength": 1,
      "maxLength": 20
    },
    "contactType": {
      "type": ["string", "null"],
      "minLength": 1,
      "maxLength": 100
    },
    "areaServed": {
      "type": ["string", "null"],
      "minLength": 1,
      "maxLength": 100
    },
    "availableLanguage": {
      "type": ["string", "null"],
      "minLength": 2,
      "maxLength": 2
    },
    "email": {
      "type": ["string", "null"],
      "format": "email"
    }
  },
  "anyOf": [
    { "required": ["email"] },
    { "required": ["telephone"] }
  ]
}