mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
build: update dependencies
This commit is contained in:
@@ -62,7 +62,7 @@ export class Validator {
|
||||
Logger.log(`Adding schemas from ${schemaDir} to validator.`);
|
||||
|
||||
// tslint:disable-next-line:no-magic-numbers - iterate over schema files
|
||||
await asyncPool(2, schemaFiles, async (file) => {
|
||||
await asyncPool(2, schemaFiles, async (file: string) => {
|
||||
// read schema file
|
||||
const buffer = await readFilePromisified(file);
|
||||
const schema = JSON.parse(buffer.toString());
|
||||
@@ -139,7 +139,7 @@ export async function validateFiles(schemaDir: string, resourcesDir: string): Pr
|
||||
const errors: ExpectableValidationErrors = {};
|
||||
|
||||
// tslint:disable-next-line:no-magic-numbers - iterate over files to test
|
||||
await asyncPool(2, testFiles, async (testFile) => {
|
||||
await asyncPool(2, testFiles, async (testFile: string) => {
|
||||
const testFileName = basename(testFile);
|
||||
|
||||
const buffer = await readFilePromisified(join(resourcesDir, testFileName));
|
||||
@@ -195,6 +195,7 @@ export async function validateFiles(schemaDir: string, resourcesDir: string): Pr
|
||||
name: `expected ${error}`,
|
||||
property: 'unknown',
|
||||
schema: 'undefined',
|
||||
stack: 'undefined',
|
||||
});
|
||||
}
|
||||
} else if (unexpectedErrors === 0) {
|
||||
|
||||
Reference in New Issue
Block a user