mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
fix: add SC prefix to the camel cased type of the instance
This commit is contained in:
@@ -104,7 +104,7 @@ export class Validator {
|
|||||||
throw new Error('Instance.type does not exist.');
|
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);
|
return part.substr(0, 1).toUpperCase() + part.substr(1);
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user