Skip to content

Commit 0c34904

Browse files
authored
Merge pull request #1992 from hey-api/chore/read-only-write-only-ref
chore: improve scope detection
2 parents ddd93fc + 5c489b2 commit 0c34904

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

packages/openapi-ts-tests/test/openapi-ts.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default defineConfig(() => {
118118
},
119119
{
120120
// exportFromIndex: true,
121-
name: 'zod',
121+
// name: 'zod',
122122
},
123123
],
124124
// useOptions: false,

packages/openapi-ts/src/openApi/2.0.x/parser/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ const parseRef = ({
578578
state: {
579579
...state,
580580
$ref: schema.$ref,
581+
isProperty: false,
581582
},
582583
});
583584
irSchema.accessScopes = mergeSchemaAccessScopes(

packages/openapi-ts/src/openApi/3.0.x/parser/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ const parseRef = ({
791791
state: {
792792
...state,
793793
$ref: schema.$ref,
794+
isProperty: false,
794795
},
795796
});
796797
irSchema.accessScopes = mergeSchemaAccessScopes(

packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ const parseRef = ({
834834
state: {
835835
...state,
836836
$ref: schema.$ref,
837+
isProperty: false,
837838
},
838839
});
839840
irRefSchema.accessScopes = mergeSchemaAccessScopes(

0 commit comments

Comments
 (0)