import { SchemaBase } from '../generic/SchemaBase'; export type ObjectBsonSchemaWithoutRequired = SchemaBase & { readonly bsonType: 'object'; readonly properties: Record; readonly minProperties?: number; readonly maxProperties?: number; readonly examples?: Record[]; readonly additionalProperties?: false | any; }; export type ObjectBsonSchemaWithRequired = ObjectBsonSchemaWithoutRequired & { readonly required: readonly string[]; }; export type ObjectBsonSchema = ObjectBsonSchemaWithoutRequired | ObjectBsonSchemaWithRequired;