Skip to content

Commit

Permalink
Fix undefined example.$ref
Browse files Browse the repository at this point in the history
  • Loading branch information
thim81 committed Sep 9, 2024
1 parent 54e9c8a commit 11d5611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libV2/schemaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ let QUERYPARAM = 'query',
exampleKey = Object.keys(exampleObj)[0];
example = exampleObj[exampleKey];

if (example.$ref) {
if (example && example.$ref) {
example = resolveExampleData(context, example);
}

Expand Down

0 comments on commit 11d5611

Please sign in to comment.