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 f25238dCopy full SHA for f25238d
src/types.ts
@@ -2,11 +2,11 @@ import { type JSONSchema4 } from 'json-schema';
2
3
export type StandardJSONSchema = JSONSchema4;
4
5
-export type MongodbJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
6
- bsonType: string;
7
- properties?: Record<string, MongodbJSONSchema>;
8
- items?: MongodbJSONSchema[];
9
- anyOf?: MongodbJSONSchema[];
+export type MongoDBJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
+ bsonType?: string | string[];
+ properties?: Record<string, MongoDBJSONSchema>;
+ items?: MongoDBJSONSchema | MongoDBJSONSchema[];
+ anyOf?: MongoDBJSONSchema[];
10
}
11
12
export type ExtendedJSONSchema = StandardJSONSchema & {
0 commit comments