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

    Function normaliseOpenApi30Node

    • Normalise OpenAPI 3.0.x nullable keyword to anyOf [T, null].

      OpenAPI 3.0 uses nullable: true instead of the JSON Schema standard anyOf: [T, { type: "null" }]. The walker understands the latter form natively, so this normaliser converts nullable to anyOf.

      Only applied when nullable is explicitly true. nullable: false or absent is the default and requires no transformation.

      Parameters

      • node: Record<string, unknown>

      Returns Record<string, unknown>