diff --git a/src/types.ts b/src/types.ts index c31603f..2b6c0c3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2,11 +2,11 @@ import { type JSONSchema4 } from 'json-schema'; export type StandardJSONSchema = JSONSchema4; -export type MongodbJSONSchema = Pick & { - bsonType: string; - properties?: Record; - items?: MongodbJSONSchema[]; - anyOf?: MongodbJSONSchema[]; +export type MongoDBJSONSchema = Pick & { + bsonType?: string | string[]; + properties?: Record; + items?: MongoDBJSONSchema | MongoDBJSONSchema[]; + anyOf?: MongoDBJSONSchema[]; } export type ExtendedJSONSchema = StandardJSONSchema & {