Commit 0ad2ec8 1 parent 8be6975 commit 0ad2ec8 Copy full SHA for 0ad2ec8
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import type { DetailedAsyncAPI } from '../types';
3
3
import { SchemaInterface } from './schema' ;
4
4
import { SchemaTypesToIterate , traverseAsyncApiDocument } from '../iterator' ;
5
5
import { AsyncAPIDocumentInterface } from './asyncapi' ;
6
- import { SchemasInterface } from 'models' ;
6
+ import { SchemasInterface } from '../ models' ;
7
7
8
8
export interface Constructor < T > extends Function {
9
- new ( ...any : any [ ] ) : T ;
9
+ new ( ...any : any [ ] ) : T ;
10
10
}
11
11
12
12
export type InferModelData < T > = T extends BaseModel < infer J > ? J : never ;
@@ -23,7 +23,7 @@ export function schemasFromDocument<T extends SchemasInterface>(document: AsyncA
23
23
24
24
function callback ( schema : SchemaInterface ) {
25
25
// comparing the reference (and not just the value) to the .json() object
26
- if ( ! jsonInstances . has ( schema . json ( ) ) ) {
26
+ if ( ! jsonInstances . has ( schema . json ( ) ) ) {
27
27
jsonInstances . add ( schema . json ( ) ) ;
28
28
schemas . add ( schema ) ; // unique schemas
29
29
}
You can’t perform that action at this time.
0 commit comments