{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.org/schemas/service.json",
  "title": "Schema.org Service",
  "description": "A service provided by an organization, e.g. delivery service, print services, etc.",
  "type": "object",
  "required": ["@type", "name"],
  "properties": {
    "@type": {
      "type": "string",
      "description": "The Schema.org type.",
      "enum": ["Service", "BroadcastService", "CableOrSatelliteService", "FinancialProduct", "FoodService", "GovernmentService", "TaxiService", "WebAPI"]
    },
    "@context": {
      "type": "string",
      "default": "https://schema.org"
    },
    "name": {
      "type": "string",
      "description": "The name of the service."
    },
    "description": {
      "type": "string",
      "description": "A description of the service."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the service."
    },
    "image": {
      "oneOf": [
        { "type": "string", "format": "uri" },
        { "$ref": "schema-org-image-object-schema.json" }
      ],
      "description": "An image of the service."
    },
    "serviceType": {
      "type": "string",
      "description": "The type of service being offered."
    },
    "provider": {
      "oneOf": [
        { "$ref": "schema-org-person-schema.json" },
        { "$ref": "schema-org-organization-schema.json" }
      ],
      "description": "The service provider."
    },
    "areaServed": {
      "type": "string",
      "description": "The geographic area where a service is provided."
    },
    "audience": {
      "type": "object",
      "description": "An intended audience.",
      "properties": {
        "@type": { "type": "string", "const": "Audience" },
        "audienceType": { "type": "string" }
      }
    },
    "availableChannel": {
      "type": "object",
      "description": "A means of accessing the service.",
      "properties": {
        "@type": { "type": "string", "const": "ServiceChannel" },
        "serviceUrl": { "type": "string", "format": "uri" },
        "servicePhone": { "type": "string" },
        "serviceSmsNumber": { "type": "string" },
        "servicePostalAddress": { "$ref": "schema-org-postal-address-schema.json" }
      }
    },
    "category": {
      "type": "string",
      "description": "A category for the service."
    },
    "offers": {
      "oneOf": [
        { "$ref": "schema-org-offer-schema.json" },
        { "type": "array", "items": { "$ref": "schema-org-offer-schema.json" } }
      ],
      "description": "An offer to provide this service."
    },
    "termsOfService": {
      "type": "string",
      "format": "uri",
      "description": "Human-readable terms of service documentation."
    },
    "serviceOutput": {
      "type": "object",
      "description": "The tangible thing generated by the service.",
      "properties": {
        "@type": { "type": "string" },
        "name": { "type": "string" }
      }
    },
    "serviceArea": {
      "type": "string",
      "description": "The geographic area where the service is provided."
    },
    "hoursAvailable": {
      "type": "object",
      "description": "The hours during which this service is available.",
      "properties": {
        "@type": { "type": "string", "const": "OpeningHoursSpecification" },
        "dayOfWeek": { "type": "string" },
        "opens": { "type": "string" },
        "closes": { "type": "string" }
      }
    },
    "isRelatedTo": {
      "type": "object",
      "description": "A pointer to another, somehow related product or service.",
      "properties": {
        "@type": { "type": "string" },
        "name": { "type": "string" }
      }
    },
    "isSimilarTo": {
      "type": "object",
      "description": "A pointer to another, functionally similar product or service.",
      "properties": {
        "@type": { "type": "string" },
        "name": { "type": "string" }
      }
    },
    "logo": {
      "oneOf": [
        { "type": "string", "format": "uri" },
        { "$ref": "schema-org-image-object-schema.json" }
      ],
      "description": "An associated logo."
    },
    "brand": {
      "type": "object",
      "description": "The brand of the service.",
      "properties": {
        "@type": { "type": "string", "enum": ["Brand", "Organization"] },
        "name": { "type": "string" }
      }
    },
    "aggregateRating": {
      "$ref": "schema-org-aggregate-rating-schema.json",
      "description": "The overall rating."
    },
    "review": {
      "oneOf": [
        { "$ref": "schema-org-review-schema.json" },
        { "type": "array", "items": { "$ref": "schema-org-review-schema.json" } }
      ],
      "description": "A review of the service."
    },
    "sameAs": {
      "oneOf": [
        { "type": "string", "format": "uri" },
        { "type": "array", "items": { "type": "string", "format": "uri" } }
      ],
      "description": "URL of a reference Web page that unambiguously indicates the item's identity."
    }
  }
}
