fix: add SC prefix to the camel cased type of the instance

This commit is contained in:
Michel Jonathan Schmitz
2019-01-30 11:15:32 +01:00
parent ba2de4b48f
commit e559234cea

View File

@@ -104,7 +104,7 @@ export class Validator {
throw new Error('Instance.type does not exist.');
}
const schemaName = instance.type.split(' ').map((part) => {
const schemaName = 'SC' + instance.type.split(' ').map((part) => {
return part.substr(0, 1).toUpperCase() + part.substr(1);
}).join('');