Skip to content

Commit

Permalink
Fix type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Oct 2, 2024
1 parent f4862ae commit 110d060
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api/src/schema/compile-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function removeAllTitles(schema) {
}
}

if (schema.oneOf && Array.isArray(schema.oneOf)) {
schema.oneOf = schema.oneOf.map((item) => removeAllTitles(item));
}

return schema;
}

Expand Down

0 comments on commit 110d060

Please sign in to comment.