{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-health/json-schema/azure-health-services-name-availability-info-schema.json",
  "title": "ServicesNameAvailabilityInfo",
  "description": "The properties indicating whether a given service name is available.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-health-proxy-api-openapi.yml#/components/schemas/ServicesNameAvailabilityInfo",
  "type": "object",
  "properties": {
    "nameAvailable": {
      "description": "The value which indicates whether the provided name is available.",
      "type": "boolean",
      "readOnly": true
    },
    "reason": {
      "description": "The reason for unavailability.",
      "enum": [
        "Invalid",
        "AlreadyExists"
      ],
      "type": "string",
      "readOnly": true,
      "x-ms-enum": {
        "name": "ServiceNameUnavailabilityReason",
        "modelAsString": false
      }
    },
    "message": {
      "description": "The detailed reason message.",
      "type": "string"
    }
  }
}