import type { MetadataStorage as ClassTransformerMetadataStorage } from 'class-transformer/types/MetadataStorage' ; import { getMetadataStorage , MetadataStorage , ValidatorOptions , } from 'class-validator' ; import { ISchemaConverters } from './defaultConverters' ; export interface IOptions extends ValidatorOptions { /**
     * A map of additional metadata-to-schema converters that can be used to
     * supplement or override the default ones. The key should correspond to the
     * 'type' property of a ValidationMetadata object.
     */ additionalConverters : ISchemaConverters ; /**
     * Metadata storage instance of class-transformer. This value can be
     * optionally defined in order for class-transformer's @Type decorators to
     * have effect in JSON Schema generation.
     */ classTransformerMetadataStorage ? : ClassTransformerMetadataStorage ; /**
     * Metadata storage instance of class-validator. This value can be
     * optionally defined in order to override the default storage used
     * to parse decorator metadata.
     */ classValidatorMetadataStorage : MetadataStorage ; /**
     * A prefix added to all `$ref` JSON pointers referencing other schemas.
     * Defaults to '#/definitions/'.
     */ refPointerPrefix : string ; /**
     * Property used to group schemas.
     * Defaults to `name`, i.e., class name.
     */ schemaNameField : string ; } export const defaultOptions = { additionalConverters : { } , classValidatorMetadataStorage : getMetadataStorage ( ) , refPointerPrefix : '#/definitions/' , schemaNameField : 'name' , } ;