{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-create-tenant-specialty-request-schema.json",
  "title": "CreateTenantSpecialtyRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-tenant-specialty-api-openapi.yml#/components/schemas/CreateTenantSpecialtyRequest",
  "type": "object",
  "required": [
    "specialtyId"
  ],
  "properties": {
    "specialtyId": {
      "type": "string",
      "description": "Identifier of the global specialty this tenant specialty is based on. Required and must reference an existing global specialty; a missing or blank value is rejected with 400 before any other validation runs."
    },
    "data": {
      "$ref": "https://schemas.certifyos.com/entities/TenantSpecialty.schema.json",
      "type": "object",
      "description": "Tenant-specific metadata for this specialty (e.g. display name, description, change reason). Validated against the TenantSpecialty JSON Schema; on PUT this value fully replaces any previously stored data — fields omitted here are cleared, not preserved."
    }
  }
}