schema-components - v3.7.0
    Preparing search index...

    Function normaliseDraft04Node

    • Normalise Draft 04 exclusiveMinimum/exclusiveMaximum from boolean to number form, plus the other Draft 04 translations applied to a single node.

      In Draft 04:

      • exclusiveMinimum: true + minimum: 5 → value must be > 5
      • exclusiveMinimum: false (or absent) + minimum: 5 → value must be >= 5

      In Draft 06+:

      • exclusiveMinimum: 5 → value must be > 5 (no separate minimum)
      • minimum: 5 → value must be >= 5

      The transform converts boolean form to number form so the walker can treat exclusiveMinimum/exclusiveMaximum uniformly as numbers.

      This function preserves the no-context signature for the OpenAPI 3.0 and Swagger 2.0 normalisers that compose it directly. The JSON Schema normalisation path uses the internal normaliseDraft04NodeWithContext helper via deepNormaliseWithContext to thread diagnostics.

      Parameters

      • node: Record<string, unknown>

      Returns Record<string, unknown>