Skip to content

Commit f0119b9

Browse files
committed
update types
1 parent 2350b28 commit f0119b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { type JSONSchema4 } from 'json-schema';
33
export type StandardJSONSchema = JSONSchema4;
44

55
export type MongodbJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
6-
bsonType: string;
6+
bsonType?: string | string[];
77
properties?: Record<string, MongodbJSONSchema>;
8-
items?: MongodbJSONSchema[];
8+
items?: MongodbJSONSchema | MongodbJSONSchema[];
99
anyOf?: MongodbJSONSchema[];
1010
}
1111

0 commit comments

Comments
 (0)