Nog CLI Developer Guide - v0.10.5
    Preparing search index...

    Advanced Schema Composition Engine.

    Handles the complexity of OpenAPI 'allOf' (polymorphism & composition) by implementing a "Smart Flattening" strategy suitable for TypeScript class generation.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Merges a list of schemas (defined in an 'allOf' array) into a unified property set.

      Parameters

      • allOfSchemas: (SchemaObject | ReferenceObject)[]

        The array of schema objects or references to merge.

      • registry: Map<string, IrModel>

        The global model registry to resolve references.

      • currentSchemaKey: string

        The name of the schema currently being processed (for cycle detection).

      Returns AllOfMergeResult

      A result object containing the merged properties and inheritance metadata.

      If a circular dependency is detected in the inheritance chain.