{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-check-name-availability-response-schema.json",
  "title": "CheckNameAvailabilityResponse",
  "description": "The check availability result.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-communication-services-communicationservices-api-openapi.yml#/components/schemas/CheckNameAvailabilityResponse",
  "type": "object",
  "properties": {
    "nameAvailable": {
      "type": "boolean",
      "description": "Indicates if the resource name is available."
    },
    "reason": {
      "type": "string",
      "description": "The reason why the given name is not available.",
      "enum": [
        "Invalid",
        "AlreadyExists"
      ],
      "x-ms-enum": {
        "name": "CheckNameAvailabilityReason",
        "modelAsString": true
      }
    },
    "message": {
      "type": "string",
      "description": "Detailed reason why the given name is available."
    }
  }
}