Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
paula-stacho committed Jan 20, 2025
1 parent 2350b28 commit f25238d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { type JSONSchema4 } from 'json-schema';

export type StandardJSONSchema = JSONSchema4;

export type MongodbJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
bsonType: string;
properties?: Record<string, MongodbJSONSchema>;
items?: MongodbJSONSchema[];
anyOf?: MongodbJSONSchema[];
export type MongoDBJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
bsonType?: string | string[];
properties?: Record<string, MongoDBJSONSchema>;
items?: MongoDBJSONSchema | MongoDBJSONSchema[];
anyOf?: MongoDBJSONSchema[];
}

export type ExtendedJSONSchema = StandardJSONSchema & {
Expand Down

0 comments on commit f25238d

Please sign in to comment.