Amazon Vinyl
    Preparing search index...

    Function mergeJsonSchema

    • Merges JSON Schema fragments into a single definition, later fragments taking precedence.

      This mirrors an intersection (and) of constraints: properties are combined and required keys are unioned, while all other keywords are overridden by the last fragment that defines them.

      Parameters

      • ...fragments: readonly (JsonSchema | undefined)[]

        The fragments to merge. undefined fragments are ignored.

      Returns JsonSchema