diff --git a/packages/core/src/utils.js b/packages/core/src/utils.js index 6780c8a717..16639adc6d 100644 --- a/packages/core/src/utils.js +++ b/packages/core/src/utils.js @@ -539,7 +539,7 @@ export function optionsList(schema) { function findSchemaDefinition($ref, definitions = {}) { // Extract and use the referenced definition if we have it. - const match = /^#\/definitions\/(.*)$/.exec($ref); + const match = /^#(?:\/definitions)?\/(.*)$/.exec($ref); if (match && match[1]) { const parts = match[1].split("/"); let current = definitions;