Skip to content

Commit 1c1b50e

Browse files
authored
Merge pull request #19 from Exabyte-io/update/SOF-6184
SOF-6184: ESSE with fixed schemas
2 parents bc0dd65 + beeaafe commit 1c1b50e

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@babel/preset-react": "7.16.7",
4949
"@babel/register": "^7.16.0",
5050
"@babel/runtime-corejs3": "7.16.8",
51-
"@exabyte-io/esse.js": "2022.7.28-1",
51+
"@exabyte-io/esse.js": "2022.8.16-0",
5252
"crypto-js": "^4.1.1",
5353
"json-schema-merge-allof": "^0.8.1",
5454
"lodash": "^4.17.21",

src/entity/in_memory.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,20 @@ export class InMemoryEntity {
220220
* @returns {Object} schema
221221
*/
222222
static get jsonSchema() {
223-
return mergeAllOf(
224-
{
225-
allOf: [this.baseJSONSchema, ...getMixSchemasByClassName(this.name)],
226-
},
227-
{
228-
resolvers: {
229-
defaultResolver: mergeAllOf.options.resolvers.title,
223+
try {
224+
return mergeAllOf(
225+
{
226+
allOf: [this.baseJSONSchema, ...getMixSchemasByClassName(this.name)],
230227
},
231-
},
232-
);
228+
{
229+
resolvers: {
230+
defaultResolver: mergeAllOf.options.resolvers.title,
231+
},
232+
},
233+
);
234+
} catch (e) {
235+
console.error(e.stack);
236+
throw e;
237+
}
233238
}
234239
}

0 commit comments

Comments
 (0)