Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Feb 5, 2024
1 parent 2f96a50 commit b583d57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions src/js/esse/JSONSchemasInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 0 additions & 4 deletions src/js/esse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b583d57

Please sign in to comment.