zibri
    Preparing search index...

    A provider for automatic entity generation.

    interface EntityGenerationProvider {
        generateSchemasFromPaths: boolean;
        markAsEntities: boolean;
        prefix: string;
        resolveSpec: () => Promise<OpenAPIObject>;
    }

    Implemented by

    Index

    Properties

    generateSchemasFromPaths: boolean

    Whether or not to generate schemas from openapi paths.

    markAsEntities: boolean

    Whether or not the generated entities should be marked with @Entity.

    prefix: string

    The prefix to add to all generated entities, so that they don't overlap with any existing ones.

    resolveSpec: () => Promise<OpenAPIObject>

    The method that actually resolves the open api spec that is then later on used to generate the entities.