Skip to content

Commit

Permalink
Fixes #9923 - added recursion for nested objects (#12428)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7162 authored Jun 6, 2022
1 parent ec6c4a4 commit c4db27f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,10 @@
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
Expand Down

0 comments on commit c4db27f

Please sign in to comment.