Skip to content

Commit 8446095

Browse files
Fix old schema reference in validateSpec
1 parent 216317d commit 8446095

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ontology/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const INPUT_ERROR_CODE = 2;
2222
const validateSpec = ajv.compile({
2323
properties: {
2424
class: {
25-
enum: schema.descendants('Ontology', { excludeAbstract: true }).map(model => model.name),
25+
enum: schema.descendants('Ontology', { excludeAbstract: true }),
2626
type: 'string',
2727
},
2828
defaultNameToSourceId: { type: 'boolean' },

0 commit comments

Comments
 (0)