Skip to content

Commit

Permalink
include summary of files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamez committed May 10, 2023
1 parent 33fb56c commit dd21e8d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions functions/validator-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ const getSummary = (validationResult) => (
{
...validationResult,
files: undefined,
filesIncluded: Object.keys((validationResult.files || {}))
filesSummary: (validationResult.files || []).map(item => ({
required: item.required,
exists: item.exists,
file: item.file,
hasErrors: item.hasErrors,
errorsCount: item.errorsCount
}))
}
)

exports.handler = function(event, context, callback) {
exports.handler = function (event, context, callback) {
let body

try {
Expand Down

0 comments on commit dd21e8d

Please sign in to comment.