11import { Schema as InternalSchema } from './schema-analyzer' ;
22import convertors from './schema-convertors' ;
3- import { ExtendedJSONSchema , MongoDBJSONSchema , StandardJSONSchema } from './types' ;
3+ import { ExpandedJSONSchema , MongoDBJSONSchema , StandardJSONSchema } from './types' ;
44
55export interface SchemaAccessor {
66 getStandardJsonSchema : ( ) => Promise < StandardJSONSchema > ;
77 getMongoDBJsonSchema : ( ) => Promise < MongoDBJSONSchema > ;
8- getExtendedJsonSchema : ( ) => Promise < ExtendedJSONSchema > ;
8+ getExpandedJSONSchema : ( ) => Promise < ExpandedJSONSchema > ;
99 getInternalSchema : ( ) => Promise < InternalSchema > ;
1010}
1111
@@ -23,7 +23,7 @@ export class InternalSchemaBasedAccessor implements SchemaAccessor {
2323 private internalSchema : InternalSchema ;
2424 private standardJSONSchema ?: StandardJSONSchema ;
2525 private mongodbJSONSchema ?: MongoDBJSONSchema ;
26- private extendedJSONSchema ?: ExtendedJSONSchema ;
26+ private ExpandedJSONSchema ?: ExpandedJSONSchema ;
2727
2828 constructor ( internalSchema : InternalSchema ) {
2929 this . internalSchema = internalSchema ;
@@ -41,7 +41,7 @@ export class InternalSchemaBasedAccessor implements SchemaAccessor {
4141 return this . mongodbJSONSchema ??= await convertors . internalSchemaToMongoDB ( this . internalSchema , options ) ;
4242 }
4343
44- async getExtendedJsonSchema ( options : Options = { } ) : Promise < ExtendedJSONSchema > {
45- return this . extendedJSONSchema ??= await convertors . internalSchemaToExtended ( this . internalSchema , options ) ;
44+ async getExpandedJSONSchema ( options : Options = { } ) : Promise < ExpandedJSONSchema > {
45+ return this . ExpandedJSONSchema ??= await convertors . internalSchemaToExpanded ( this . internalSchema , options ) ;
4646 }
4747}
0 commit comments