Skip to content

Commit 1178d70

Browse files
committed
fix: consider array items in dependency graph
1 parent c51d6fd commit 1178d70

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/openapi-code-generator/src/core/dependency-graph.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const getDependenciesFromSchema = (
3131
? [schema.additionalProperties]
3232
: [],
3333
)
34+
.concat(schema.type === "array" ? [schema.items] : [])
3435

3536
return allSources.reduce((acc, it) => {
3637
if (isRef(it)) {

0 commit comments

Comments
 (0)