Schema validation

The space.noSchemaValidation setting, configurable in tenants.json, controls whether SDMX structures are validated against their schema before being persisted.

When a structure is submitted for upsert, the workflow proceeds as follows:

  1. Start Upsert: the process begins when a structure is submitted.
  2. Check noSchemaValidation flag:
    • If true: schema validation is skipped.
    • If false: internal transformations are first applied to the input structure before validation.
  3. Schema validation outcome (applies only if validation was performed):
    • Valid: proceed to upsert.
    • Invalid: upsert is aborted, and an error is thrown.
  4. Pre-upsert transformations: a final round of internal transformations is applied before persisting the structure.
  5. Upsert structure: the corrected and optionally validated structure is persisted.

This workflow ensures that internal transformations are consistently applied both before validation (if performed) and immediately before the upsert, maintaining structure consistency while respecting the noSchemaValidation configuration.