diff --git a/src/js/esse/JSONSchemasInterface.ts b/src/js/esse/JSONSchemasInterface.ts index d17f6edb0..87617c5df 100644 --- a/src/js/esse/JSONSchemasInterface.ts +++ b/src/js/esse/JSONSchemasInterface.ts @@ -23,9 +23,7 @@ export function readSchemaFolderSync(folderPath: string) { } export class JSONSchemasInterface { - static _schema: SchemaObject | null = null; - - static schemaFolder = path.resolve("node_modules/@mat3ra/esse/lib/js/schema"); + static schemaFolder = "./lib/js/schema"; static setSchemaFolder(schemaFolder: string) { if (this.schemaFolder !== schemaFolder) { diff --git a/src/js/esse/index.js b/src/js/esse/index.js index 5074ad3e7..546617b7f 100644 --- a/src/js/esse/index.js +++ b/src/js/esse/index.js @@ -23,10 +23,6 @@ export class ESSE { this.results = config.results || RESULTS; } - getSchemaById(schemaId) { - return this.schemas.find((schema) => schema.$id === schemaId); - } - /** * Validates a given example against the schema. * @param example {Object|Array} example to validate.