Skip to content

Commit

Permalink
testing looping
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Jun 10, 2024
1 parent 93a09ce commit 711a4fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/scripts/validate-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ module.exports = {

let redirects = redirectsImport;
const errors = [];
const validate = ajv.compile(schema);


const validateEntries = (redirects) => {
console.log('running')
const validate = ajv.compile(schema);
const valid = validate(redirects);
console.log(valid)

if (!valid) {
const error = validate.errors[0];
Expand Down

0 comments on commit 711a4fc

Please sign in to comment.