- const schemaId = normalizeId(schema.$id);
- const baseIds = { "": schemaId };
- const pathPrefix = getFullPath(schemaId, false);
+ const { schemaId } = this.opts;
+ const schId = normalizeId(schema[schemaId] || baseId);
+ const baseIds = { "": schId };
+ const pathPrefix = getFullPath(schId, false);