2 references to ApprovedExtensions
dotnet-openapi (2)
Commands\AddFileCommand.cs (2)
41
if (!
ApprovedExtensions
.Any(e => sourceFile.EndsWith(e, StringComparison.Ordinal)))
43
await Warning.WriteLineAsync($"The extension for the given file '{sourceFile}' should have been one of: {string.Join(",",
ApprovedExtensions
)}.");