We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2350b28 commit f0119b9Copy full SHA for f0119b9
src/types.ts
@@ -3,9 +3,9 @@ import { type JSONSchema4 } from 'json-schema';
3
export type StandardJSONSchema = JSONSchema4;
4
5
export type MongodbJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
6
- bsonType: string;
+ bsonType?: string | string[];
7
properties?: Record<string, MongodbJSONSchema>;
8
- items?: MongodbJSONSchema[];
+ items?: MongodbJSONSchema | MongodbJSONSchema[];
9
anyOf?: MongodbJSONSchema[];
10
}
11
0 commit comments