Skip to content

Commit

Permalink
pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
paula-stacho committed Jan 20, 2025
1 parent 1249f8b commit 2350b28
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 47 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {
SimplifiedSchema
} from './schema-analyzer';
import * as schemaStats from './stats';
import { AnyIterable, StandardJSONSchema, MongodbJSONSchema, ExtendedJSONSchema } from './types';
import { AnyIterable, StandardJSONSchema, MongoDBJSONSchema, ExtendedJSONSchema } from './types';
import { getCompletedSchemaAnalyzer } from './utils';

/**
Expand Down Expand Up @@ -77,7 +77,7 @@ export type {
SimplifiedSchemaField,
SimplifiedSchema,
StandardJSONSchema,
MongodbJSONSchema,
MongoDBJSONSchema,
ExtendedJSONSchema
};

Expand Down
28 changes: 15 additions & 13 deletions src/schema-accessor.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import { Schema as InternalSchema } from './schema-analyzer';

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?
import convertors from './schema-convertors';
import { ExtendedJSONSchema, MongodbJSONSchema, StandardJSONSchema } from './types';
import { ExtendedJSONSchema, MongoDBJSONSchema, StandardJSONSchema } from './types';

export interface SchemaAccessor {
getStandardJsonSchema: () => Promise<StandardJSONSchema>;
getMongodbJsonSchema: () => Promise<MongodbJSONSchema>;
getMongoDBJsonSchema: () => Promise<MongoDBJSONSchema>;
getExtendedJsonSchema: () => Promise<ExtendedJSONSchema>;
getInternalSchema: () => Promise<InternalSchema>;
}

type Options = {
signal?: AbortSignal;
}

/**
* Accessor for different schema formats.
* Internal schema is provided at initialization,
Expand All @@ -18,31 +22,29 @@ export interface SchemaAccessor {
export class InternalSchemaBasedAccessor implements SchemaAccessor {
private internalSchema: InternalSchema;
private standardJSONSchema?: StandardJSONSchema;
private mongodbJSONSchema?: MongodbJSONSchema;
private mongodbJSONSchema?: MongoDBJSONSchema;
private extendedJSONSchema?: ExtendedJSONSchema;
private signal?: AbortSignal;

constructor(internalSchema: InternalSchema, signal?: AbortSignal) {
this.signal = signal;
constructor(internalSchema: InternalSchema) {
this.internalSchema = internalSchema;
}

async getInternalSchema(): Promise<InternalSchema> {
async getInternalSchema(options?: Options): Promise<InternalSchema> {

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'options' is defined but never used

Check warning on line 32 in src/schema-accessor.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'options' is defined but never used
return this.internalSchema;
}

async getStandardJsonSchema(): Promise<StandardJSONSchema> {
async getStandardJsonSchema(options: Options = {}): Promise<StandardJSONSchema> {
if (this.standardJSONSchema) return this.standardJSONSchema;
return this.standardJSONSchema = await convertors.internalSchemaToStandard(this.internalSchema, { signal: this.signal });
return this.standardJSONSchema = await convertors.internalSchemaToStandard(this.internalSchema, options);
}

async getMongodbJsonSchema(): Promise<MongodbJSONSchema> {
async getMongoDBJsonSchema(options: Options = {}): Promise<MongoDBJSONSchema> {
if (this.mongodbJSONSchema) return this.mongodbJSONSchema;
return this.mongodbJSONSchema = await convertors.internalSchemaToMongodb(this.internalSchema, { signal: this.signal });
return this.mongodbJSONSchema = await convertors.internalSchemaToMongoDB(this.internalSchema, options);
}

async getExtendedJsonSchema(): Promise<ExtendedJSONSchema> {
async getExtendedJsonSchema(options: Options = {}): Promise<ExtendedJSONSchema> {
if (this.extendedJSONSchema) return this.extendedJSONSchema;
return this.extendedJSONSchema = await convertors.internalSchemaToExtended(this.internalSchema, { signal: this.signal });
return this.extendedJSONSchema = await convertors.internalSchemaToExtended(this.internalSchema, options);
}
}
26 changes: 26 additions & 0 deletions src/schema-analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from 'bson';

import semanticTypes from './semantic-types';
import { AnyIterable } from './types';

type TypeCastMap = {
Array: unknown[];
Expand Down Expand Up @@ -586,3 +587,28 @@ export class SchemaAnalyzer {
return simplifiedSchema(this.schemaAnalysisRoot.fields);
}
}

export function verifyStreamSource(
source: AnyIterable
): AnyIterable {
if (!(Symbol.iterator in source) && !(Symbol.asyncIterator in source)) {
throw new Error(
'Unknown input type for `docs`. Must be an array, ' +
'stream or MongoDB Cursor.'
);
}

return source;
}

export async function getCompletedSchemaAnalyzer(
source: AnyIterable,
options?: SchemaParseOptions
): Promise<SchemaAnalyzer> {
const analyzer = new SchemaAnalyzer(options);
for await (const doc of verifyStreamSource(source)) {
if (options?.signal?.aborted) throw options.signal.aborted;
analyzer.analyzeDoc(doc);
}
return analyzer;
}
10 changes: 5 additions & 5 deletions src/schema-convertors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema as InternalSchema } from './schema-analyzer';

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?

Check failure on line 1 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'"./types"' has no exported member named 'MongoDBJSONSchema'. Did you mean 'MongodbJSONSchema'?
import { ExtendedJSONSchema, MongodbJSONSchema, StandardJSONSchema } from './types';
import { ExtendedJSONSchema, MongoDBJSONSchema, StandardJSONSchema } from './types';

function internalSchemaToStandard(
internalSchema: InternalSchema,

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 5 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'internalSchema' is defined but never used
Expand All @@ -10,13 +10,13 @@ function internalSchemaToStandard(
return {};
}

function internalSchemaToMongodb(
function internalSchemaToMongoDB(
internalSchema: InternalSchema,

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'internalSchema' is defined but never used

Check warning on line 14 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'internalSchema' is defined but never used
options: {

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 16.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, 16.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 18.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 20.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'options' is defined but never used

Check warning on line 15 in src/schema-convertors.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, 16.x)

'options' is defined but never used
signal?: AbortSignal
}): MongodbJSONSchema {
}): MongoDBJSONSchema {
// TODO: COMPASS-8701
return {} as MongodbJSONSchema;
return {} as MongoDBJSONSchema;
}

function internalSchemaToExtended(
Expand All @@ -30,6 +30,6 @@ function internalSchemaToExtended(

export default {
internalSchemaToStandard,
internalSchemaToMongodb,
internalSchemaToMongoDB,
internalSchemaToExtended
};
27 changes: 0 additions & 27 deletions src/utils.ts

This file was deleted.

0 comments on commit 2350b28

Please sign in to comment.