TinyMCE MultiCloud Plugin - v0.1.1
    Preparing search index...

    Function configureMultiCloudValidation

    • Configures the xdbc DBC instances used by the MultiCloud validation layer.

      Two independent DBC instances control how violations are reported:

      • config — governs configuration contract checks (missing/malformed plugin options and provider credentials). Registered at globalThis.MultiCloud.Validation.Config.
      • boundary — governs Zod schema checks on data returned by provider APIs (picker results, Graph API responses, etc.). Registered at globalThis.MultiCloud.Validation.Boundary.

      Both layers default to throwing DBC.Infringement on violations. Call this function to switch either or both layers to soft logging mode (log to console instead of throwing) or to turn off their output entirely. Settings are applied independently — e.g. you can silence config violations while keeping boundary checks strict.

      Must be called before any plugin initialisation to take effect.

      Parameters

      • options: { boundary?: DBCLayerOptions; config?: DBCLayerOptions }
        • Optionalboundary?: DBCLayerOptions

          Settings for the API boundary schema layer.

        • Optionalconfig?: DBCLayerOptions

          Settings for the configuration contract layer.

      Returns void

      // Soft-log config violations, keep boundary checks strict (default)
      configureMultiCloudValidation({
      config: { throwOnInfringement: false, logToConsole: true },
      });
      // Both layers in soft logging mode
      configureMultiCloudValidation({
      config: { throwOnInfringement: false, logToConsole: true },
      boundary: { throwOnInfringement: false, logToConsole: true },
      });

      Salvatore Callari Callari@WaXCode.net