Skip to content

Commit c96fda6

Browse files
authored
Merge pull request #12332 from Azure/dc-validation-check-skip
Skip validation if dataTypes in data connector file is empty
2 parents 60fdf84 + 581d4b8 commit c96fda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.script/dataConnectorValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function IsValidDataConnectorSchema(filePath: string): Promise<Exit
4747
}
4848

4949
function isPotentialConnectorJson(jsonFile: any) {
50-
if(typeof jsonFile.id != "undefined" && typeof jsonFile.connectivityCriterias != "undefined")
50+
if(typeof jsonFile.id != "undefined" && typeof jsonFile.connectivityCriterias != "undefined" && jsonFile.dataTypes.length > 0)
5151
{
5252
return true;
5353
}

0 commit comments

Comments
 (0)