Skip to content

Commit

Permalink
=( ci file check again
Browse files Browse the repository at this point in the history
  • Loading branch information
abaskk-msft committed Jul 3, 2024
1 parent b8e88cf commit 669c4f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/YamlValidator/InputProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ public static RootCommand GetRootCommand()
{
result.ErrorMessage = $"The folder '{inputFilePath}' does not contain any yaml files";
}
}
}*/
else if (File.Exists(inputFilePath))
{
if (!inputFilePath.EndsWith(Constants.YamlFileExtension, StringComparison.OrdinalIgnoreCase))
{
result.ErrorMessage = $"The file '{inputFilePath}' must be a '{Constants.YamlFileExtension}' file";
}
}*/
}
});

// assume local schema file exists in NuGet package, use relative filepath for now
Expand All @@ -77,10 +77,10 @@ public static RootCommand GetRootCommand()
{
result.ErrorMessage = "The schema file must be a json file";
}
else if (!File.Exists(schemaPath))
/*else if (!File.Exists(schemaPath))
{
result.ErrorMessage = $"The schema file '{schemaPath}' does not exist";
}
}*/
});

// define root
Expand Down

0 comments on commit 669c4f0

Please sign in to comment.