From 3ce39c07d9c098f87519550f4725c160dfcb1572 Mon Sep 17 00:00:00 2001 From: Gabriel Diaz Date: Wed, 23 Dec 2020 18:16:17 -0500 Subject: [PATCH] Check OpenAPI yaml files (#1094) Co-authored-by: Lukas Gravley --- lib/functions/buildFileList.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 4a5f5d11..064b6191 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -624,6 +624,16 @@ function BuildFileList() { FILE_ARRAY_CLOUDFORMATION+=("${FILE}") fi + ############################ + # Check if file is OpenAPI # + ############################ + if DetectOpenAPIFile "${FILE}"; then + ################################ + # Append the file to the array # + ################################ + FILE_ARRAY_OPENAPI+=("${FILE}") + fi + ######################################## # Check if the file is Tekton template # ########################################