diff --git a/libV2/schemaUtils.js b/libV2/schemaUtils.js index ea828681..77ba2f54 100644 --- a/libV2/schemaUtils.js +++ b/libV2/schemaUtils.js @@ -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); }