Skip to content

Commit

Permalink
Merge pull request postmanlabs#825 from thim81/824-empty-example
Browse files Browse the repository at this point in the history
Fix undefined example.$ref
  • Loading branch information
VShingala authored Sep 10, 2024
2 parents 54e9c8a + af57d1c commit f0a23b1
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 f0a23b1

Please sign in to comment.