Merge pull request #2648 from Azure/v-rucdu/SkipConnectorValidationForEventDataType

Skip DataConnector validation for event data type
This commit is contained in:
v-jayakal 2021-07-10 21:25:22 -07:00 коммит произвёл GitHub
Родитель d085206d91 43bad3a170
Коммит ce47cba5b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -16,7 +16,7 @@ export async function IsValidDataConnectorSchema(filePath: string): Promise<Exit
if(isPotentialConnectorJson(jsonFile))
{
if(!jsonFile.dataTypes[0].name.includes("Events"))
if(!jsonFile.dataTypes[0].name.includes("Event"))
{
let connectorCategory = getConnectorCategory(jsonFile.dataTypes, jsonFile.instructionSteps);
let schema = JSON.parse(fs.readFileSync(".script/utils/schemas/"+ connectorCategory +"_ConnectorSchema.json", "utf8"));
@ -29,11 +29,11 @@ export async function IsValidDataConnectorSchema(filePath: string): Promise<Exit
isValidPermissions(jsonFile.permissions, connectorCategory);
}
else{
console.warn(`Could not identify json file as a connector. Skipping File path: ${filePath}`)
console.warn(`Skipping File as it is of type Events : ${filePath}`)
}
}
else{
console.warn(`Skipping File as it is of type Events : ${filePath}`)
else{
console.warn(`Could not identify json file as a connector. Skipping File path: ${filePath}`)
}
}
else{