diff --git a/.changeset/purple-ducks-rule.md b/.changeset/purple-ducks-rule.md new file mode 100644 index 0000000..2d871b8 --- /dev/null +++ b/.changeset/purple-ducks-rule.md @@ -0,0 +1,5 @@ +--- +'openapi-ts-json-schema': patch +--- + +Fix `isRef` meta data prop for inline refHandling diff --git a/src/openapiToTsJsonSchema.ts b/src/openapiToTsJsonSchema.ts index 51dc099..a7bf3d7 100644 --- a/src/openapiToTsJsonSchema.ts +++ b/src/openapiToTsJsonSchema.ts @@ -142,7 +142,7 @@ export async function openapiToTsJsonSchema({ outputPath, schemaPatcher, refHandling, - isRef: false, + isRef: inlinedRefs.has(id), }); } }