File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,15 @@ export const resolveValue = ({
27
27
28
28
let hasReadonlyProps = false ;
29
29
30
- const spec = context . specs [ context . specKey ] ;
31
-
32
30
// Avoid infinite loop
33
- if (
34
- name &&
35
- ! name . startsWith ( resolvedImport . name ) &&
36
- ! spec ?. components ?. schemas ?. [ name ]
37
- ) {
31
+ if ( ! name || ! context . parents ?. includes ( name ) ) {
38
32
const scalar = getScalar ( {
39
33
item : schemaObject ,
40
34
name : resolvedImport . name ,
41
35
context : {
42
36
...context ,
43
37
specKey : importSpecKey || context . specKey ,
38
+ ...( name ? { parents : [ ...( context . parents || [ ] ) , name ] } : { } ) ,
44
39
} ,
45
40
} ) ;
46
41
Original file line number Diff line number Diff line change @@ -383,6 +383,7 @@ export interface ContextSpecs {
383
383
override : NormalizedOverrideOutput ;
384
384
tsconfig ?: Tsconfig ;
385
385
packageJson ?: PackageJson ;
386
+ parents ?: string [ ] ;
386
387
}
387
388
388
389
export interface GlobalOptions {
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Apr 12, 2023
Successfully deployed to the following URLs:
orval – ./
orval.vercel.app
orval-anymaniax.vercel.app
orval.dev
orval-git-master-anymaniax.vercel.app
www.orval.dev