{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thenile/main/json-schema/thenile-tenant-ssoregistration-schema.json",
  "title": "TenantSSORegistration",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thenile-database-openapi.yml#/components/schemas/TenantSSORegistration",
  "required": [
    "clientId",
    "configUrl",
    "provider",
    "tenantId"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "tenantId": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "configUrl": {
      "type": "string",
      "format": "uri"
    },
    "clientId": {
      "minLength": 1,
      "type": "string"
    },
    "emailDomains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enabled": {
      "type": "boolean"
    }
  }
}